Re: [PATCH v2] btrfs-progs: print: Check on num_stripes in print_chunk

2017-09-07 Thread David Sterba
On Thu, Sep 07, 2017 at 10:28:25AM +0800, Su Yue wrote: > From: Zhang Yu > > In fuzz-tests/004-simple-dump-tree: > Since there is one wrong item(DATA_RELOC_TREE CHUNK_ITEM 0) in root > tree. > It fails as follow: > > ctree.h:317: btrfs_chunk_item_size: BUG_ON `num_stripes == 0` triggered, > val

[PATCH v2] btrfs-progs: print: Check on num_stripes in print_chunk

2017-09-06 Thread Su Yue
From: Zhang Yu In fuzz-tests/004-simple-dump-tree: Since there is one wrong item(DATA_RELOC_TREE CHUNK_ITEM 0) in root tree. It fails as follow: ctree.h:317: btrfs_chunk_item_size: BUG_ON `num_stripes == 0` triggered, value 1 btrfs-progs/btrfs(+0x2496f)[0x564a031e996f] btrfs-progs/btrfs(print_ch