Skip to content

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

Description

@knorrie

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions