diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2014-11-12 13:52:11 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-11-14 11:02:16 +0100 |
commit | 0c44c195fecad7db4bba064e6785faadf5c686b8 (patch) | |
tree | dd5d3c5c911f7a7a2918ed2b4deb8c5f56c17674 /cmds-filesystem.c | |
parent | 1e3da6d65ebdcf83b1d85f11284cde79777277b9 (diff) |
btrfs-progs: Check sb_bytenr with device size before scanning one device.
When using btrfs check with -s option, if using '-s 2' on a small
device which doesn't have the third superblock, "No valid Btrfs found"
will be output, but it is not appropriate.
So check sb_bytenr against device size before scanning a device and
output proper error message.
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'cmds-filesystem.c')
0 files changed, 0 insertions, 0 deletions