From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,427935f8a93f9524 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-01-29 11:07:52 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!cpk-news-hub1.bbnplanet.com!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!nabeth.cxo.cpqcorp.net!alan Newsgroups: comp.unix.tru64 From: alan@nabeth.cxo.cpqcorp.net (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Distribution: world References: <110fcff.0201281702.7e624109@posting.google.com> Reply-To: alan@nabeth.cxo.cpqcorp.net (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: du command on AdvFS Message-ID: <3qC58.143$am1.4028@news.cpqcorp.net> Date: Tue, 29 Jan 2002 19:07:43 GMT NNTP-Posting-Host: 16.112.5.128 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 1012331263 16.112.5.128 (Tue, 29 Jan 2002 11:07:43 PST) NNTP-Posting-Date: Tue, 29 Jan 2002 11:07:43 PST Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.unix.tru64:6606 In article , 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)