Re: [PATCH v2 3/4] Btrfs-progs: fsck: deal with corrupted csum root

2014-06-03 Thread Wang Shilong
On 06/04/2014 12:21 AM, David Sterba wrote: On Tue, Jun 03, 2014 at 11:25:49AM +0800, Wang Shilong wrote: On 06/03/2014 01:27 AM, David Sterba wrote: On Thu, May 29, 2014 at 05:59:57PM +0800, Wang Shilong wrote: If checksum root is corrupted, fsck will get segmentation. This is because if we f

Re: [PATCH v2 3/4] Btrfs-progs: fsck: deal with corrupted csum root

2014-06-03 Thread David Sterba
On Tue, Jun 03, 2014 at 11:25:49AM +0800, Wang Shilong wrote: > On 06/03/2014 01:27 AM, David Sterba wrote: > >On Thu, May 29, 2014 at 05:59:57PM +0800, Wang Shilong wrote: > >>If checksum root is corrupted, fsck will get segmentation. This > >>is because if we fail to load checksum root, root's no

Re: [PATCH v2 3/4] Btrfs-progs: fsck: deal with corrupted csum root

2014-06-02 Thread Wang Shilong
On 06/03/2014 01:27 AM, David Sterba wrote: On Thu, May 29, 2014 at 05:59:57PM +0800, Wang Shilong wrote: If checksum root is corrupted, fsck will get segmentation. This is because if we fail to load checksum root, root's node is NULL which cause NULL pointer deferences later. To fix this probl

Re: [PATCH v2 3/4] Btrfs-progs: fsck: deal with corrupted csum root

2014-06-02 Thread David Sterba
On Thu, May 29, 2014 at 05:59:57PM +0800, Wang Shilong wrote: > If checksum root is corrupted, fsck will get segmentation. This > is because if we fail to load checksum root, root's node is NULL which > cause NULL pointer deferences later. > > To fix this problem, we just did something like extent