commit | e46a28ca3d0dce8d939b10d4c94eaa2307b6415a | [log] [tgz] |
---|---|---|
author | Liu Bo <bo.li.liu@oracle.com> | Fri Jul 29 10:57:55 2016 -0700 |
committer | David Sterba <dsterba@suse.com> | Mon Sep 26 17:59:49 2016 +0200 |
tree | e6b24762fac0357116bc65db4f71557b162ce649 | |
parent | afce772e87c36c7f07f230a76d525025aaf09e41 [diff] |
Btrfs: remove BUG() in raid56 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 error properly. Signed-off-by: Liu Bo <bo.li.liu@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>