On 5/28/20 6:07 PM, David Sterba wrote:
On Wed, May 27, 2020 at 10:37:47PM +0200, Goffredo Baroncelli wrote:
this patch adds support for the raid5/6 profiles in the command
'btrfs filesystem usage'.
$ sudo btrfs fi us /
Overall:
Device size: 40.00GiB
Device allocated: 8.28GiB
Device unallocated: 31.72GiB
Device missing: 0.00B
Used: 5.00GiB
Free (estimated): 17.36GiB (min: 17.36GiB)
Data ratio: 2.00
Metadata ratio: 0.00
Global reserve: 3.25MiB (used: 0.00B)
Data,RAID6: Size:4.00GiB, Used:2.50GiB (62.53%)
Instead before:
$ sudo btrfs fi us /
WARNING: RAID56 detected, not implemented
WARNING: RAID56 detected, not implemented
WARNING: RAID56 detected, not implemented
Overall:
Device size: 40.00GiB
Device allocated: 0.00B
Device unallocated: 40.00GiB
Device missing: 0.00B
Used: 0.00B
Free (estimated): 0.00B (min: 8.00EiB)
Data ratio: 0.00
Metadata ratio: 0.00
Global reserve: 3.25MiB (used: 0.00B)
Data,RAID6: Size:4.00GiB, Used:2.50GiB (62.53%)
I rewrote the patch after some David's comments about the difficult to
review it because I changed too much code. So this time I tried to be less
intrusive. I leaved the old logic and I computed only the missing
values.
Thanks, that's what I expected. Patch added to devel.
Greath ! Many thanks
BR
G.Baroncelli
--
gpg @keyserver.linux.it: Goffredo Baroncelli <kreijackATinwind.it>
Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5