[Samba] Create time changing by itself?
Timo Sirainen
tss at iki.fi
Thu Dec 19 02:06:01 GMT 2002
On Wed, 2002-12-18 at 23:37, Urban Widmark wrote:
> > tar: /mnt/cygwin/home/Timo Sirainen/xxx/xxxxx.xxx: file changed as we read it
>
> Yes, this is known. smbfs does some strange time operations when closing a
> file. I think the idea is to make sure the time is changed when a file has
> been written to (NT4 doesn't, or not always?).
Well, tar is opening the file as read-only. The check it does is first
lstat() and later fstat() just before closing. If their ctimes differ,
it complains. lstat()'s ctime seems to be two seconds behind fstat().
> I had someone that I thought I had tricked into testing this but I haven't
> heard anything for a while. The relevant code is (probably) this
> file/function in the kernel source tree:
>
> fs/smbfs/proc.c:smb_proc_close_inode()
>
> Try removing the "Kludge alert" parts and if that fails, the
> smb_proc_setattr_ext() call.
Didn't help.
More information about the samba
mailing list