GNU bug report logs - #49994
upgrade: have "-s" of 'ls' display alloc'd sizes for specified "--block-size"

Previous Next

Package: coreutils;

Reported by: L A Walsh <coreutils <at> tlinx.org>

Date: Wed, 11 Aug 2021 06:58:02 UTC

Severity: wishlist

Full log


Message #25 received at submit <at> debbugs.gnu.org (full text, mbox):

From: L A Walsh <coreutils <at> tlinx.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Coreutils <bug-coreutils <at> gnu.org>
Subject: Re: bug#49994: upgrade: have "-s" of 'ls' display alloc'd sizes for
 specified "--block-size"
Date: Tue, 17 Aug 2021 03:24:06 -0700

On 2021/08/15 21:36, Paul Eggert wrote:
> On 8/15/21 9:26 PM, L A Walsh wrote:
>> I don't want to display the allocated size on the current device,
>> but the size that would be allocated on a device with block-size=1-byte.
> 
> There's no practical way for 'ls' to calculate that, as the kernel 
> doesn't reveal that information.

'du' can display sizes using and arbitrary block size with
no need for kernel support, but it doesn't have the format options
that ls has.

For determining the size with an arbitrary block size, the code
could just be dupped from 'du'.






This bug report was last modified 3 years and 303 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.