diff options
author | Zhao Lei <zhaolei@cn.fujitsu.com> | 2015-10-29 17:31:43 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-11-02 15:10:14 +0100 |
commit | 0b69dfa4106025eed865bfced66e989f4a27e116 (patch) | |
tree | 72b97988f201611e0bc17cfe6f1ffa3a62f9d290 /configure.ac | |
parent | 835821f36a32bc7662f4aaa0f9a2a27a35eb60ed (diff) |
btrfs-progs: fix floating point exception for btrfs-calc-size
Current code exit with floating point exception on a blank fs:
# btrfs-calc-size -b /dev/sda6
Calculating size of root tree
Total size: 16384
Inline data: 0
Total seeks: 0
Forward seeks: 0
Backward seeks: 0
Floating point exception
This patch add a condition check for above case.
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions