diff options
author | David Sterba <dsterba@suse.com> | 2016-09-20 16:45:36 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-09-21 11:50:42 +0200 |
commit | d75e061bcd46634cf97559ee43e889d1f21b11b5 (patch) | |
tree | fe60542a75c808fedc06bb303baebc0be96523ff /btrfs-image.c | |
parent | eccba6261a2060aed34f3a777b5f137afbb96177 (diff) |
btrfs-progs: defrag: set errno correctly in the callback
In case defrag fails, the errno is not properly reported everywhere but
rather the last value of 'e', which could be 0. Then we get confusing
error messages like:
ERROR: defrag failed on /path/to/file: Success
Reported-by: Adam Mizerski <adam@mizerski.pl>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'btrfs-image.c')
0 files changed, 0 insertions, 0 deletions