Re: [PATCH v2] Btrfs: remove BUG() in raid56

2016-07-26 Thread Liu Bo
On Tue, Jul 26, 2016 at 06:58:42PM +0200, David Sterba wrote: > On Wed, Jun 29, 2016 at 05:57:56PM -0700, Liu Bo wrote: > > This BUG() has been triggered by a fuzz testing image, but in fact > > btrfs can handle this gracefully by returning -EIO. > > > > Thus, use btrfs_warn to give us more debugg

Re: [PATCH v2] Btrfs: remove BUG() in raid56

2016-07-26 Thread David Sterba
On Wed, Jun 29, 2016 at 05:57:56PM -0700, Liu Bo wrote: > This BUG() has been triggered by a fuzz testing image, but in fact > btrfs can handle this gracefully by returning -EIO. > > Thus, use btrfs_warn to give us more debugging information than a > single BUG() and return error properly. > > S

[PATCH v2] Btrfs: remove BUG() in raid56

2016-06-29 Thread Liu Bo
This BUG() has been triggered by a fuzz testing image, but in fact btrfs can handle this gracefully by returning -EIO. Thus, use btrfs_warn to give us more debugging information than a single BUG() and return error properly. Signed-off-by: Liu Bo --- v2: - use btrfs_warn with more debugging inf