From 79cb12dde9352331c15724b7d0892fd4ce5ea342 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 12 Feb 2023 13:14:43 -0700 Subject: btrfsitem, btrfsinspect/print_tree: Implement the QGroup types --- lib/btrfs/btrfsprim/objid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/btrfs/btrfsprim/objid.go') diff --git a/lib/btrfs/btrfsprim/objid.go b/lib/btrfs/btrfsprim/objid.go index 5ba213d..8ad290b 100644 --- a/lib/btrfs/btrfsprim/objid.go +++ b/lib/btrfs/btrfsprim/objid.go @@ -68,7 +68,7 @@ func (id ObjID) Format(typ ItemType) string { case DEV_EXTENT_KEY: return fmt.Sprintf("%d", int64(id)) case QGROUP_RELATION_KEY: - //nolint:gomnd // TODO: I'm not sure what the 48/16 bit split means. + //nolint:gomnd // The left 48 bits are the "qgroup level", and the right 16 bits are the subvolume ID. return fmt.Sprintf("%d/%d", uint64(id)>>48, uint64(id)&((1<<48)-1)) -- cgit v1.2.3-2-g168b