LastModified in SMB_COM_CLOSE Does Not Work with NT
Michael B. Allen
miallen at eskimo.com
Fri Aug 23 13:08:04 GMT 2002
On Wed, 21 Aug 2002 13:45:08 -0400
"Andrew Chernow" <achernow at unitedstoragetech.com> wrote:
> Michael,
> I saw the message you posted about the lasted release of the jCIFS
> package.
>
> >Didn't get a chance to do NamedPipes available() and it doesn't look
> >like setting last modified through SMB_COM_CLOSE works.
>
> I wanted to let you know that I did get lastModified time working through
> SMB_COM_CLOSE. I just ...
After examining this more closely it appears that this works with Win98 and
Samba but Windows NT sp4 does not support setting the LastModified time
through SMB_COM_CLOSE. It is simply ignored. The current time is used
regardless. When copying files it is necessary to use additional commands
to set the various attibutes. This helps explain performance issues and the
packet storm that ensues when copying directories with many small files
to/from NT (so if you zipped it up you could transfer it more safely in
half the time).
Note, Ethereal decodes that time field incorrectly. It really is seconds
from 1970 like the "spec" reads.
--
A program should be written to model the concepts of the task it
performs rather than the physical world or a process because this
maximizes the potential for it to be applied to tasks that are
conceptually similar and more importantly to tasks that have not
yet been conceived.
More information about the samba-technical
mailing list