summaryrefslogtreecommitdiff
path: root/lib/btrfs/btrfsprim/objid.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-02-12 13:14:43 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-02-12 14:27:30 -0700
commit79cb12dde9352331c15724b7d0892fd4ce5ea342 (patch)
treea90ef3875bc235e442d6abe9b9fcd67fadd3d830 /lib/btrfs/btrfsprim/objid.go
parent2cb3cb14dd85535a0a691d42874d7045d7c81571 (diff)
btrfsitem, btrfsinspect/print_tree: Implement the QGroup types
Diffstat (limited to 'lib/btrfs/btrfsprim/objid.go')
-rw-r--r--lib/btrfs/btrfsprim/objid.go2
1 files changed, 1 insertions, 1 deletions
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))