Hi Russell,

Nicholas D Steeves <nstee...@gmail.com> writes:

> Hi Russell,
>
> On Wed, 24 Apr 2024 08:03:59 +1000 Russell Coker <russ...@coker.com.au> wrote:
>> 
>> 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?
>

Was this ever forwarded upstream?  Also, I thought of one counter
example: If a user uses the desktop interface to mount something then
does 'btrfs device usage' work correctly?  If so, then this bug needs to
be made more specific.

Cheers,
Nicholas

Attachment: signature.asc
Description: PGP signature

Reply via email to