summaryrefslogtreecommitdiff
path: root/cmds-filesystem.c
diff options
context:
space:
mode:
authorZach Brown <zab@zabbo.net>2014-10-15 16:14:19 -0700
committerDavid Sterba <dsterba@suse.cz>2014-11-03 18:35:30 +0100
commit85d67ac1450ff245af79ac907092fa55eb52fb32 (patch)
tree379c62fee5ee5d0d39fd0ee7ecbfb7b42b3eda0a /cmds-filesystem.c
parent9662864435d23ecd4c9f91dd3ab5af2c062ed01f (diff)
btrfs-progs: check read extent errors when mapping
coverity barked out a warning that btrfs-map-logical was storing but ignoring errors from read_extent_from_disk(). So don't ignore 'em. I made extent reading errors fatal to match the fatal errors from mapping mirrors above. And while we're at it have read_extent_from_disk() return -errno pread errors instead of -EIO or -1 (-EPERM). The only other caller who tests errors clobbers them with -EIO. Signed-off-by: Zach Brown <zab@zabbo.net> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'cmds-filesystem.c')
0 files changed, 0 insertions, 0 deletions