btrfs-progs: device usage: report slack space
authorDavid Sterba <dsterba@suse.com>
Tue, 17 May 2016 14:21:00 +0000 (16:21 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 1 Jun 2016 12:56:56 +0000 (14:56 +0200)
commit66a2e4eee4f7dfe3c44be0f0353012cce4d65818
treea0e43d3f885eae7bb655f965f0c19d6a604a1404
parent16570509f6b631e554113dacbff3fe051b0927af
btrfs-progs: device usage: report slack space

The total filesystem space on a given device might be smaller than the
device size. We should report that space as well. The original idea was
to report the 'occupied' size but the term was not all clear, so the
logic was reversed to report the slack space.

Signed-off-by: David Sterba <dsterba@suse.com>
cmds-fi-usage.c