modtime not preserved on copying onto samba share - got the reason

Luke Kenneth Casson Leighton lkcl at
Fri Oct 9 23:09:25 GMT 1998

this is probably why NT caches file times for approx 30 seconds.  you can
delete a file and recreate it within 30 seconds and it will retain the
(create, i think) time of the previous file.

this was discussed on ntbugtraq a couple of months ago.

 On Sat, 10 Oct 1998, Andrej Borsenkow wrote:

> O.K. I got it. The sequence is as following:
> NT create & X
> SMBwrite - wites 0 bytes *at the end of file* (creating empty file)
> transact2 set file info -
> transact2 set file info - one of them (dunno) correctly sets file times
> SMBwrite - writes the rest of file, thus resetting all file times :((
> nice shot
> looks, call_trans2setfilepathinfo() should just remeber passed a/mtimes.And
> whatever is called, when write is complete, should set them (SMBclose?)
> looking forward for a patch :))
> /andrej

<a href="mailto:lkcl at" > Luke Kenneth Casson Leighton  </a>
<a href=""> Samba and Network Development </a>
<a href=""       > Samba and Network Consultancy </a>

More information about the samba-technical mailing list