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

Bug#116358: ls: --block-size needs a better description



Package: fileutils
Version: 4.1-7
Severity: normal

On Sat, Oct 20, 2001 at 11:18:03PM +1300, Mark van Walraven wrote:

> On Sat, Oct 20, 2001 at 01:41:25AM -0800, Ethan Benson wrote:
> > > > > BTW: does "ls --block-size=1 -s" look broken to you?
> > > > 
> > > > busybox ls doesn't know what that is.
> > > 
> > > Sorry, meant fileutils' ls.  Bug?
> > 
> > the ls you have available on boot-floppies is busybox, not fileutils.
> 
> Forget boot-floppies!  Please try the above on fileutils ls and see if
> the numbers look right to you.

It's taking the size of the file in blocks on the filesystem (-s) and
then displaying it in units of 1 byte (--block-size=1).  So for a 1-byte
file which occupies a 4k disk block, ls --block-size=1 -s will show
4096.

I think this is a documentation bug.  --block-size says it means "use
SIZE-byte blocks".  It really means "show the number of blocks allocated
in units of SIZE".

-- 
 - mdz



Reply to: