[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mv creates 'immortal' directory trees on samba-mounted NT shares

From: Hans-Bernhard Broeker
Subject: Re: mv creates 'immortal' directory trees on samba-mounted NT shares
Date: 17 Oct 2000 12:21:44 GMT

Tim Van Holder <address@hidden> wrote:
> This would seem to be some bug in mv, as it fails to detect that source
> and destination are actually the same file/directory (when fOO is a file,
> it will truncate it and rename it to foo, then complain with 'Text file
> busy').

I don't think 'mv' is guilty of this detection failure. It's the file
system driver's duty to create a usable illusion of an inode
number. That's what programs like 'mv' or 'diff' use to determine if
two filenames refer to the exact same file, eventually: if the device
and inode number are the same, the file is considered to be the same.

DOS-borne file systems with their disrespect of letter case in
filenames make this even more important as there, you can reach even
the same directory entry, instead of just the same file, under
different names, i.e. comparisons of filenames don't help, either.

I think the blame should go to samba or NT, not 'mv', here.
Hans-Bernhard Broeker (address@hidden)
Even if all the snow were burnt, ashes would remain.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]