Re: [PATCH v2 1/4] Btrfs-progs: fsck: only allow partial opening under repair mode

2014-06-02 Thread David Sterba
On Thu, May 29, 2014 at 05:59:56PM +0800, Wang Shilong wrote: The reason that we allow partial opening is that sometimes, we may have some corrupted trees.(for example extent tree), for fsck repair case, the broken tree may be rebuilt later. So if users only want to do check but not repair

[PATCH v2 1/4] Btrfs-progs: fsck: only allow partial opening under repair mode

2014-05-29 Thread Wang Shilong
The reason that we allow partial opening is that sometimes, we may have some corrupted trees.(for example extent tree), for fsck repair case, the broken tree may be rebuilt later. So if users only want to do check but not repair anything, this patch will make fsck return failure as soon as