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

2016-08-24 Thread David Sterba
On Fri, Jul 29, 2016 at 10:57:55AM -0700, Liu Bo wrote: > This BUG() has been triggered by a fuzz testing image, which contains > an invalid chunk type, ie. a single stripe chunk has the raid6 type. > > Btrfs can handle this gracefully by returning -EIO, so besides using > btrfs_warn to give us mo

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

2016-07-29 Thread Liu Bo
This BUG() has been triggered by a fuzz testing image, which contains an invalid chunk type, ie. a single stripe chunk has the raid6 type. Btrfs can handle this gracefully by returning -EIO, so besides using btrfs_warn to give us more debugging information rather than a single BUG(), we can return