btrfs-progs/convert
Qu Wenruo da2659b090 btrfs-progs: convert: Open the fs readonly for rollback
For rollback, we only needs to open the fs to check if it meets the
condition to rollback.  And this RW read makes us failed to rollback
btrfs with v2 space cache.

In fact, we don't even start a transaction during rollback.

So open the fs RO for rollback, to avoid v2 space cache problem.

Reported-by: Gu Jinxiang <gujx@cn.fujitsu.com>
Reviewed-by: Gu JinXiang <gujx@cn.fujitsu.com>
Tested-by: Gu JinXiang <gujx@cn.fujitsu.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2017-11-14 15:59:00 +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: Open the fs readonly for rollback 2017-11-14 15:59:00 +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: move and rename dev_t helpers to common file 2017-09-08 16:15:05 +02: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