diff options
author | David Sterba <dsterba@suse.com> | 2017-01-03 18:26:43 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-01-25 09:47:35 +0100 |
commit | f49fb67a2552c14e4194b97ce34d3fbf5389a1ce (patch) | |
tree | 39f19935bbb53d21cd8c86c185bfd5bc82d19515 /utils.c | |
parent | 72ae343f772120ec52533e071e8bea58fd76ad3a (diff) |
btrfs-progs: enable negative numbers for unallocated device space
The unallocated space is not calculated correctly when a device
deltion/replace is in progress. This appears as huge number, EiB-sized.
It's really a negative number, because we don't have entire information
available and mixing numbers that do and don't take the deleted device
size into account.
We have to query search ioctl to retrieve the missing information, also
this requires root access for the ioctl, so we still need a workaround
for non-root case. Here the negative numbers seem to be a bit more
practical than EiB numbers.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'utils.c')
0 files changed, 0 insertions, 0 deletions