btrfs-progs/convert
Qu Wenruo e8f9653fc0 btrfs-progs: convert: Fix a bug in rollback check which overwrite return value
Commit 1170ac3079 ("btrfs-progs: convert: Introduce function to check if
convert image is able to be rolled back") reworked rollback check
condition, by checking 1:1 mapping of each file extent.

The idea itself has nothing wrong, but error handler is not implemented
correctly, which over writes the return value and always try to rollback
the fs even it fails to pass the check.

Fix it by correctly return the error before rollback the fs.

Fixes: 1170ac3079 ("btrfs-progs: convert: Introduce function to check if convert image is able to be rolled back")
Reported-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2018-01-03 17:29:19 +01:00
..
Makefile btrfs-progs: build: add stub makefile to convert 2017-03-08 13:00:46 +01:00
common.c btrfs-progs: Remove deprecated leafsize usage 2017-07-03 13:35:10 +02:00
common.h btrfs-progs: convert: widen int types in convert context 2017-06-26 17:09:53 +02:00
main.c btrfs-progs: convert: Fix a bug in rollback check which overwrite return value 2018-01-03 17:29:19 +01:00
source-ext2.c btrfs-progs: convert: use correct string printing for errcode_t 2017-09-25 15:17:21 +02:00
source-ext2.h btrfs-progs: convert: move duplicated acl code to common header 2017-09-08 16:15:05 +02:00
source-fs.c btrfs-progs: convert: move and rename dev_t helpers to common file 2017-09-08 16:15:05 +02:00
source-fs.h btrfs-progs: convert: add missing types header 2017-11-14 15:59:01 +01:00
source-reiserfs.c btrfs-progs: add crude error handling when transaction start fails 2017-09-08 16:15:05 +02:00
source-reiserfs.h btrfs-progs: convert: move reiserfs struct definitions to header 2017-09-08 16:15:05 +02:00