Btrfs-progs: make btrfs-map-logical handle error gracefully
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Fri, 19 Jul 2013 06:31:34 +0000 (14:31 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 9 Aug 2013 12:32:37 +0000 (14:32 +0200)
commitaf6c1650cf38395143157a674344e195d47c0517
treebfed2ed86ed5362fe2c51a7a7a03041a495834c2
parent44aa9dce55b0c35dbdad584c54a72d2525157cc6
Btrfs-progs: make btrfs-map-logical handle error gracefully

If an overflow logical address is passed(for example),the original
code will cause segmentation, this is unfriendly to users,fix it.

Signed-off-by: Wang Shilong<wangsl.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
btrfs-map-logical.c