At 23:11 18-09-02, Matt Zimmerman wrote:

>du(1) from GNU fileutils, which is used by most every Linux distribution,
>gets this right and only counts hardlinked files once (unless you explicitly
>ask it to do otherwise).

Let me say it differently then. Suppose / contains 1000 blocks,
and 'du' says /usr has 600 blocks. And suppose a hardlinked
file of 100 blocks is in /sbin and /usr/sbin.
If you move /usr to another device that needs 600 blocks, but
when you remove the old /usr from the first disk that only
frees 500 blocks (assuming you copy the files while splitting
the two, e.g. with two tar's and a pipe).

Rob

Reply via email to