Hi Russell,

On Wed, 24 Apr 2024 08:03:59 +1000 Russell Coker <russ...@coker.com.au> wrote:
> Package: btrfs-progs
> Version: 6.6.3-1.1+b2
> Severity: normal
> Tags: upstream
> 
> Below is an example of comparing btrfs dev usa as root and non-root.  When
> run as non-root it is wrong in every way, there is not a single correct
> value.  I've done this on my laptop (single device) and on a server with 3
> devices and the results were similarly wrong.
> 
> Instead of providing information that is wrong and misleading it should
> just give an error and say that it needs root permissions.
> 
> # btrfs dev usa /
> /dev/mapper/root, ID: 1
>    Device size:           476.37GiB
>    Device slack:            1.50KiB
>    Data,single:           170.01GiB
>    Metadata,DUP:            6.00GiB
>    System,DUP:             64.00MiB
>    Unallocated:           300.29GiB
> 
> $ btrfs dev usa /
> WARNING: cannot read detailed chunk info, per-device usage will not be shown, 
> run as root
> /dev/mapper/root, ID: 1
>    Device size:           952.73MiB
>    Device slack:           16.00EiB
>    Unallocated:           476.37GiB

I agree 100%.  Would you please forward this upstream?

Regards,
Nicholas

Attachment: signature.asc
Description: PGP signature

Reply via email to