summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorZhang Yu <zhangyu-fnst@cn.fujitsu.com>2017-08-24 18:38:41 +0800
committerDavid Sterba <dsterba@suse.com>2017-09-08 16:15:05 +0200
commite96921bcaa059f1c7a5a7b3e3c3b02bb6a008f51 (patch)
treefb20519f70e10af1cc8a7478e5f96eddd38eb8d6 /tests
parentcb39164f9d87e6309e315929a3b6a6791c5ee8f6 (diff)
Btrfs-progs: print-tree: check num_stripes in print_chunk
[TEST/fuzz] case: 004-simple-dump-tree Since the wrong key(DATA_RELOC_TREE CHUNK_ITEM 0) in root tree, error calling print_chunk(), resulting in num_stripes == 0. ERROR: [TEST/fuzz] 004-simple-dump-tree ctree.h:317: btrfs_chunk_item_size: BUG_ON `num_stripes == 0` triggered, value 1 failed (ignored, ret=134): /myproject/btrfs-progs/btrfs inspect-internal dump-tree /myproject/btrfs-progs/tests/fuzz-tests/images/ bko-155201-wrong-chunk-item-in-root-tree.raw.restored test failed for case 004-simple-dump-tree Makefile:288: recipe for target 'test-fuzz' failed make: *** [test-fuzz] Error 1 So, check on num_stripes in print_chunk Signed-off-by: Zhang Yu <zhangyu-fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions