summaryrefslogtreecommitdiff
path: root/pkg/btrfs/btrfsitem/item_uuid.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-07-02 22:10:55 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-07-02 22:10:55 -0600
commit6b3974fe1c4616d8b9872d88d737623cc48c4368 (patch)
treea4b795bfbef48aefca949c96b4bd9f14b4a79992 /pkg/btrfs/btrfsitem/item_uuid.go
parente43749b899d09b57310240fe3abf0f964b9e0cd0 (diff)
subvolumes
Diffstat (limited to 'pkg/btrfs/btrfsitem/item_uuid.go')
-rw-r--r--pkg/btrfs/btrfsitem/item_uuid.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/btrfs/btrfsitem/item_uuid.go b/pkg/btrfs/btrfsitem/item_uuid.go
index d66e102..6b47547 100644
--- a/pkg/btrfs/btrfsitem/item_uuid.go
+++ b/pkg/btrfs/btrfsitem/item_uuid.go
@@ -7,6 +7,9 @@ import (
// The Key for this item is a UUID, and the item is a list of
// subvolume IDs (ObjectIDs) that that UUID maps to.
+//
+// key.objectid = first half of UUID
+// key.offset = second half of UUID
type UUIDMap []internal.ObjID // UUID_SUBVOL=251 UUID_RECEIVED_SUBVOL=252
func (o *UUIDMap) UnmarshalBinary(dat []byte) (int, error) {