[prev in list] [next in list] [prev in thread] [next in thread]
List: vbox-dev
Subject: [vbox-dev] Inconsistent timestamps from IGuestFsObjInfo
From: Magnus Madsen <madsen.magnus () gmail ! com>
Date: 2014-04-03 10:16:00
Message-ID: CA+V-7mRtf4AqS818XabG0wh1KKAKxMfDjXFbYvWO7oKBD5i8AA () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi!
I've noticed something odd while processing files in a guest file system.
I can retrieve with no problems an IFsObjInfo from
IGuestSession::fileQueryInfo and read most of the information with no
issues, but the timestamp fields:
* IFsObjInfo::accessTime
* IFsObjInfo::birthTime
* IFsObjInfo::modificationTime - being the one I am actually interested in.
I understand correctly that they should be returned as UNIX timestamps, yes?
The values for each of these values seem to be semi-random: if I read the
value for the same file, the values change each time I read them.
An example:
accessTime: 4611687856674308103
birthTime: 61683424
modificationTime: 1099702688
None of which makes sense as UNIX timestamps. Furthermore reading the
information from the same file again returns the following:
accessTime: 52218215858178
birthTime: 61685760
modificationTime: 1105479024
Another observation I have made is that IFsObjInfo::modificationTime is
always identical to IFsObjInfo::nodeId - reading the documentation, this
doesn't really make sense to me why this would be.
I tested this on VirtualBox 4.3.10 with a Windows 7 host and guest, but it
also occurs in older versions as far as I can tell. I thought perhaps
marshalling could be the issue, and that the values should be ulong rather
than long, but I still don't see how that would cause them to vary each
time the information is read.
[Attachment #5 (text/html)]
<div dir="ltr"><div><div>Hi!<br></div>I've noticed something odd while processing \
files in a guest file system.<br></div><div><br></div><div>I can retrieve with no \
problems an IFsObjInfo from IGuestSession::fileQueryInfo and read most of the \
information with no issues, but the timestamp fields:<br> <br>* \
IFsObjInfo::accessTime<br>* IFsObjInfo::birthTime<br>* IFsObjInfo::modificationTime - \
being the one I am actually interested in.<br><br></div><div>I understand correctly \
that they should be returned as UNIX timestamps, yes?<br> \
</div><div><br></div><div>The values for each of these values seem to be semi-random: \
if I read the value for the same file, the values change each time I read \
them.<br><br>An example:<br></div><div>accessTime: 4611687856674308103<br> \
</div><div>birthTime: 61683424<br></div><div>modificationTime: \
1099702688<br><br></div><div>None of which makes sense as UNIX timestamps. \
Furthermore reading the information from the same file again returns the \
following:<br> <br><div>accessTime: 52218215858178<br></div><div>birthTime: \
61685760<br></div>modificationTime: 1105479024<br><br></div><div>Another observation \
I have made is that IFsObjInfo::modificationTime is always identical to \
IFsObjInfo::nodeId - reading the documentation, this doesn't really make sense to \
me why this would be.<br> <br><br></div><div>I tested this on VirtualBox 4.3.10 with \
a Windows 7 host and guest, but it also occurs in older versions as far as I can \
tell. I thought perhaps marshalling could be the issue, and that the values should be \
ulong rather than long, but I still don't see how that would cause them to vary \
each time the information is read.<br> </div></div>
_______________________________________________
vbox-dev mailing list
vbox-dev@virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic