On Nov 1, 2008, at 8:04 AM, Eric Van Hensbergen wrote:
On Sat, Nov 1, 2008 at 9:17 AM, Rudolf Sykora <[EMAIL PROTECTED]> wrote:

Again, "What should mv do to a tree that resides on multiple file servers?"

what about: mv dirA dirB ==
mkdir dirB
dircp dirA dirB
rm -r dirA

... if you are able to 'rm -r' (which also may span multiple
fileservers) than I don't see any trouble with moving the directories.


I would imagine that 99% of the time (more?) the behavior people
desire would be what you describe.

But what is the behavior? Is it literally the above set of rc commands?
Or is there an atomicity expectation as well? After dircp dirA dirB
the contents of dirB could be surprising, especially given the later
rm -r dirA.

It seems that mv(1) was taken as far as one could go in terms
of having a non-surprising behavior: mv dir1/file  dir2/file is
equivalent to cp -x dir1/file dir2/file ; rm dir1/file.

Thanks,
Roman.

Reply via email to