From: alan@nabeth.cxo.cpqcorp.net (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: du command on AdvFS
Date: Tue, 29 Jan 2002 19:07:43 GMT [thread overview]
Message-ID: <3qC58.143$am1.4028@news.cpqcorp.net> (raw)
In-Reply-To: e6c2d89d.0201290354.117dadd@posting.google.com
In article <e6c2d89d.0201290354.117dadd@posting.google.com>, QuarterHorseman@penvillage.com (Quarter Horseman) writes:
>Read the AdvFS Admin manual and pay specific attention to the
>"Checking Free Space and Disk Usage" section as well as the sections
>referred to by "quotacheck" entries in the manual's index. All the
>manuals are online and publicly-available.
The problem with this bit of advise, is that it doesn't apply to the
du(1) command. df(1) yes. du(1) no. As others noted the problem
is that the particular file is probably sparse; it doesn't have
blocks allocated to all the space it presents. Such space reads
as zeros and when written allocates space. Most file copying
utilities don't know how to detect the whole and simply fill them
in when the data is copied.
The difference in reporting is that du(1) adds up the number of
allocated blocks in files. Since this doesn't have blocks allocated
for all the space, you see a difference. du(1) also won't report
the space used by files that are open, but which don't have names.
>
>QH
>
--
Alan Rollow alan@nabeth.cxo.cpqcorp.net (previously .dec.com)
next prev parent reply other threads:[~2002-01-29 19:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-29 1:02 du command on AdvFS Priscilla
2002-01-29 8:57 ` Joerg Bruehe
2002-01-29 10:13 ` Marre du Spam dans les news
2002-01-29 11:54 ` Quarter Horseman
2002-01-29 19:07 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [this message]
2002-01-30 11:41 ` Quarter Horseman
2002-01-31 20:30 ` Tim Mooney
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox