[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15328: Bug or dubious feature? (coreutils consistency prob)
From: |
Linda Walsh |
Subject: |
bug#15328: Bug or dubious feature? (coreutils consistency prob) |
Date: |
Wed, 11 Sep 2013 16:00:04 -0700 |
User-agent: |
Thunderbird |
Linda Walsh wrote:
Whatever the problem is, it's not in 'mv'...
----
But there is a consistency problem in core utils.
Even though /usr/share/fonts and /home/share/fonts are the same directory
with /home/share being mounted with "rbind" on /usr/share,
"mv" cannot move files between the two dirs without copying them. That
"might" be ok, except that "du -sh /usr/share/fonts /home/share/fonts/"
sees them as 1 directory.
Why does "mv" fail to rename (vs. physical copy) when "du" sees them
as the same directory -- (and only lists the first one if trying to du both):
Ishtar:/> du -sh /home/share/fonts/. /usr/share/fonts/.
8.8G /home/share/fonts/.
Ishtar:/> du -sh /usr/share/fonts/. /home/share/fonts/.
8.8G /usr/share/fonts/.
---
Also, is it intentional to leave out args from the listing of "du" --
I know it doesn't double-count the space (by default), but I would have
thought to see a 2nd entry w/0 space:
Ishtar:/> du -sh /home/share/fonts/. /usr/share/fonts/.
8.8G /home/share/fonts/.
0 /usr/share/fonts/.