We have restructured the btrfs_qgroup, and we are using
objectid for btrfs_qgroup_info_item now. Then we need to
print the objectid in btrfs-debug-tree.
Signed-off-by: Dongsheng Yang <yangds.fnst@xxxxxxxxxxxxxx>
---
print-tree.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/print-tree.c b/print-tree.c
index 3a7c13c..7cb9563 100644
--- a/print-tree.c
+++ b/print-tree.c
@@ -644,6 +644,22 @@ static void print_objectid(u64 objectid, u8 type)
printf("%llu/%llu", objectid >> 48,
objectid & ((1ll << 48) - 1));
return;
+ case BTRFS_QGROUP_INFO_KEY:
+ if (objectid == 0)
+ printf("MIXED");
+ else if (objectid == BTRFS_QGROUP_DATA_INFO_OBJECTID)
+ printf("DATA");
+ else
+ printf("METADATA");
+ return;
+ case BTRFS_QGROUP_LIMIT_KEY:
+ if (objectid == BTRFS_QGROUP_DATA_LIMIT_OBJECTID)
+ printf("DATA");
+ else if (objectid == BTRFS_QGROUP_METADATA_LIMIT_OBJECTID)
+ printf("METADATA");
+ else
+ printf("MIXED");
+ return;
case BTRFS_UUID_KEY_SUBVOL:
case BTRFS_UUID_KEY_RECEIVED_SUBVOL:
printf("0x%016llx", (unsigned long long)objectid);
--
1.8.4.2
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html