[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch for "mv -s" option
From: |
Philip Rowlands |
Subject: |
Re: Patch for "mv -s" option |
Date: |
Fri, 5 Nov 2004 14:28:06 +0000 (GMT) |
On Fri, 5 Nov 2004, Brendan Byrd/SineSwiper wrote:
>Also, I have a question about how files are moved. Currently, all files
>are copied to a new diskspace, and then the old diskspace is removed.
Only when the file is moving across filesystem boundaries.
Try this to see how mv usually behaves:
$ strace -e trace=file mv /tmp/foo /tmp/bar
>Why not just create a hardlink (ie: x->hard_link = 1;) and remove that
>link?
Because hard links cannot cross filesystem boundaries :)
$ ln /boot/message /tmp/message
ln: creating hard link `/tmp/message' to `/boot/message': Invalid cross-device
link
Cheers,
Phil
- Patch for "mv -s" option, Brendan Byrd/SineSwiper, 2004/11/05
- Re: Patch for "mv -s" option,
Philip Rowlands <=
- Re: Patch for "mv -s" option, Brendan Byrd/SineSwiper, 2004/11/08
- Re: Patch for "mv -s" option, Paul Eggert, 2004/11/08
- Re: Patch for "mv -s" option, Paul Eggert, 2004/11/08
- Re: Patch for "mv -s" option, Jim Meyering, 2004/11/08
- Re: Patch for "mv -s" option, Paul Eggert, 2004/11/08
- Re: Patch for "mv -s" option, Jim Meyering, 2004/11/09
- Re: Patch for "mv -s" option, Brendan Byrd/SineSwiper, 2004/11/15
- Re: Patch for "mv -s" option, Paul Eggert, 2004/11/16
- Re: Patch for "mv -s" option, Brendan Byrd/SineSwiper, 2004/11/19
- Re: Patch for "mv -s" option, Brendan Byrd/SineSwiper, 2004/11/19