[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFC: do you use du --bytes (-b) [Re: 'du -b' bug in fileutils-4.1
From: |
David Eisner |
Subject: |
Re: RFC: do you use du --bytes (-b) [Re: 'du -b' bug in fileutils-4.1 |
Date: |
Fri, 21 Feb 2003 10:41:20 -0500 (EST) |
On 20 Feb 2003, Paul Eggert wrote:
> David Eisner <address@hidden> writes:
>
> > I was using du to get a sense of whether an rsync operation between
> > two hosts was successful.
...
> Perhaps if we changed 'du' to ignore directory sizes; but this is
> sounding more and more like a special case just for you.
I agree. As I was telling Jim, I think I was using the wrong tool for the
job. And yes, I had the problem you described. For example, on Solaris
(ufs filesystem), empty directories are 512 bytes long, while on Cygwin +
NTFS, they're 0 bytes.
I just wrote a simple perl script to add up the (logical) sizes of
regular files, and that worked well enough for my purposes.
-David
------------------------+--------------------------+
David Eisner | E-mail: address@hidden |
CALCE EPSC | Phone: 301-405-5341 |
University of Maryland | Fax: 301-314-9269 |
------------------------+--------------------------+