forked from Mirrors/btrfs-progs
only print FIRST_CHUNK_TREE for chunk items in debug-tree
Otherwise we print FIRST_CHUNK_TREE for any objectid 256, which e.g. for the root tree is the first snap/subvol. Signed-off-by: Sage Weil <sage@newdream.net>master
parent
48f16a69d7
commit
595cb1df15
|
@ -413,8 +413,11 @@ static void print_objectid(unsigned long long objectid, u8 type)
|
||||||
printf("MULTIPLE");
|
printf("MULTIPLE");
|
||||||
break;
|
break;
|
||||||
case BTRFS_FIRST_CHUNK_TREE_OBJECTID:
|
case BTRFS_FIRST_CHUNK_TREE_OBJECTID:
|
||||||
printf("FIRST_CHUNK_TREE");
|
if (type == BTRFS_CHUNK_ITEM_KEY) {
|
||||||
break;
|
printf("FIRST_CHUNK_TREE");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
/* fall-thru */
|
||||||
default:
|
default:
|
||||||
printf("%llu", objectid);
|
printf("%llu", objectid);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue