[Dirvish] Too much disk space for images
przemek.klosowski at gmail.com
Fri Oct 2 12:19:03 UTC 2009
On Fri, Oct 2, 2009 at 6:18 AM, Dave Howorth <dhoworth at mrc-lmb.cam.ac.uk>wrote:
> I think if you ask du to tell you the size of just one particular
> snapshot, it will give you a realistic answer for what would be left if
> you deleted all the other snapshots. That's the easiest way to know the
> size that I'm aware of.
Right---it's worth remembering, and a little surprising at first, that 'du'
is not distributive ('du dirA dirB' is not necessarily 'du dirA' + 'du
dirB'). If we create two directories and hardlink files from one to the
other, we get:
du -h dirA
du -h dirB
Note that you can't tell which directory is the 'owner' of the data: it's
simply counted against the first directory it's found in:
du -h dirB dirA
du -h dirA dirB
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dirvish