Pls help!! SMB Timestamp
Christopher R. Hertel
crh at ubiqx.mn.org
Wed Nov 30 23:02:58 GMT 2005
On Thu, Dec 01, 2005 at 09:04:30AM +1100, tridge at samba.org wrote:
> > The SystemTimeLow and SystemTimeHigh fields are explained here:
> > http://ubiqx.org/cifs/SMB.html#SMB.6.3
> It really is just a single 64 bit little endian number. The split into
> 2x32bit elements in a structure was only because in the past Samba has
> not wanted to assume that all systems we build on support a 64 bit
> integer type.
Yep. I wasn't using the Samba code as my reference, however. It's
presented as two 32-bit values in the SNIA doc (in two different places)
so I decided to work with it that way in the book. I think that the
Leach/Naik draft also presents it that way. I do point out that it should
be handled as a single 64-bit value.
> The conversion constant in the above reference is correct, but it
> ignores rounding. In Samba we add 5x10^6 to the number before scaling
> it to seconds and subtracting the constant so that we round in the
> same way windows does.
Didn't know that. When I get a chance I'll add an annotation to the
on-line version of the book. Important detail. Thanks!
PS. You never got back to me on the hybrid linked-list structure I
proposed. It's half written. Any interest?
"Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X
Samba Team -- http://www.samba.org/ -)----- Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/ -)----- ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/ -)----- crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/ -)----- crh at ubiqx.org
More information about the samba-technical