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

Andrej Borsenkow borsenkow.msk at sni.de
Fri Oct 9 18:39:14 GMT 1998


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



More information about the samba-technical mailing list