Re: mv (and not reiserfs)

Richard Gooch (rgooch@atnf.csiro.au)
Sun, 4 Jul 1999 09:39:36 +1000


Andries Brouwer writes:
> Richard Gooch writes:
>
> > mv(1) should not require a directory-based adbod to be automagically
> > tarred and untarred.
>
> > Now, I realise that some people may say that mv(1) won't move
> > directories across filesystems. True. We should fix mv(1) to
> > effectively do <cp -a; rm -rf> (with error checking).
>
> > Don't be confused by thinking mv(1) is an interface to rename(2),
> > because it isn't. mv(1) can move files across filesystems, and file
> > and directories within a filesystem. So mv(1) is lacking in symmetry.
> > Let's fix that.
>
> There is no such asymmetry, at least not in theory.

In theory, practice and theory are the same.
In practice, they are not.

> POSIX.2 states that mv will move directories as well as files,
> also across filesystems.

Good.

Regards,

Richard....

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/