Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some percentages to btrfs-usage-report output #32

Open
knorrie opened this issue Aug 18, 2021 · 0 comments
Open

Add some percentages to btrfs-usage-report output #32

knorrie opened this issue Aug 18, 2021 · 0 comments

Comments

@knorrie
Copy link
Owner

knorrie commented Aug 18, 2021

When having a quick look, it would be pretty convenient if there were some percentages added, for example here:

Total physical space usage:
|
| Total filesystem size: 15.00TiB
| Allocated bytes: 14.93TiB
| Allocatable bytes remaining: 67.97GiB (x.y%)

...and probably in a few other places as well.

Note that in the above example, the percentage should be calculated, not based on total filesystem size (sum of size of all attached block devices), but based on actual allocatable raw disk space, which can be less in case there's 'soft' or 'hard' unallocatable disk space that cannot be used. So, that's similar to how e.g. the nagios monitoring plugin calculates stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant