summaryrefslogtreecommitdiff
path: root/lib/btrfs/btrfsprim/objid.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-02-12 14:29:15 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-02-12 14:29:15 -0700
commit29b6b9f997913f13a0bff8bb1278a61302413615 (patch)
tree431450fd7b0555c199b209cc2faa02dc5400bd80 /lib/btrfs/btrfsprim/objid.go
parent128e4d9aa876e14a1203ce98bfaa7ad399ad97c7 (diff)
parent49a2dde06cf825613c44138fb446c58b75cbd51a (diff)
Merge branch 'lukeshu/fix-dump-trees'
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))