bug-coreutils
[Top][All Lists]
Advanced

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

Re: df & du should honor $BLOCKSIZE


From: Peter Seebach
Subject: Re: df & du should honor $BLOCKSIZE
Date: Mon, 23 Feb 2004 00:49:20 -0600

In message <address@hidden>, Paul Eggert writes:
>address@hidden (Peter Seebach) writes:

>>      BLOCKSIZE        The size of the block units used by several commands,
>>                       most notably df(1), du(1) and ls(1).

>Can you find a complete list of BSD programs that use getbsize,
>and which contexts they use it in?

>Here's why I'd like to know the details.  OpenBSD 3.2 'ls' treats
>BLOCKSIZE differently than coreutils-5.2.0 'ls' treats BLOCK_SIZE.
>The latter affects the st_size column, but the former doesn't.  (See
>below.)  So, even if we make BLOCK_SIZE default to BLOCKSIZE, the
>emulation won't be quite right for "ls".  I'm worried that there are
>other problems in other programs.

Hmm.

Lemme see what I can do.
$ cd /usr/src
$ find . -name "*.c" -print | xargs grep -l getbsize
./bin/df/df.c
./bin/ls/ls.c
./lib/libc/gen/getbsize.c
./sbin/swapctl/swaplist.c
./usr.bin/du/du.c
./usr.bin/systat/swap.c
./usr.sbin/quot/quot.c

Looks like they all do the same thing.

-s




reply via email to

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