bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: filesizes/diskusage with ls, du, df only on xen-images


From: tstaps
Subject: Re: filesizes/diskusage with ls, du, df only on xen-images
Date: Thu, 17 Jul 2008 20:32:37 +0200 (CEST)
User-agent: Alpine 1.10 (LRH 962 2008-03-14)

Thanks a lot, Phil

...and a big sorry for my malformed mail.

It is really a 'sparse file', I have never heard before...
So we learn every day...


Greetings,
Thomas


On Thu, 17 Jul 2008, Philip Rowlands wrote:

On Wed, 16 Jul 2008, tstaps wrote:

I have a problem, that is testet only on one machine.

[ snip creating and mounting 5GB filesystem ]

Sorry, I have to delete some quoted text otherwise this reply will be unreadable.

# cp /var/lib/xen/images/xc51small.hda .
# df -k .
Dateisystem 1K-Bl?cke Benutzt Verf?gbar Ben% Eingeh?ngt auf
/dev/mapper/vg_opt-lv_opt_image1
5160576 1087236 3811196 23% /opt/image1
^^^^^^^ ?

The figure highlighted is the total number of 1K blocks in the filesystem. The total has not changed, but the used and available figures have, as would be expected.

Perhaps I'm misreading the ascii-arrows; the change in filesystem usage is 945796 K, which is smaller than the 2GB you reported. The further examples given make the same point.

Please check whether the original xc51small.hda is a sparse file, which would explain the difference between size as reported by ls and du, and space occupied on disk as reported by du and df.


Cheers,
Phil





reply via email to

[Prev in Thread] Current Thread [Next in Thread]