summaryrefslogtreecommitdiff
path: root/pkg/btrfs/btrfsitem/item_uuid.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-06-01 01:56:16 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-06-01 01:56:16 -0600
commit70fc3adf402eb956e6061fae75e46c46c1ad606d (patch)
tree5611c676dcb91405d7a327e42f664f2496107944 /pkg/btrfs/btrfsitem/item_uuid.go
parent3825cf60fd652f22acc438d50028701d27a7402d (diff)
update main, kinda
Diffstat (limited to 'pkg/btrfs/btrfsitem/item_uuid.go')
-rw-r--r--pkg/btrfs/btrfsitem/item_uuid.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/btrfs/btrfsitem/item_uuid.go b/pkg/btrfs/btrfsitem/item_uuid.go
index 315dd70..894ccff 100644
--- a/pkg/btrfs/btrfsitem/item_uuid.go
+++ b/pkg/btrfs/btrfsitem/item_uuid.go
@@ -2,20 +2,20 @@ package btrfsitem
import (
"lukeshu.com/btrfs-tools/pkg/binstruct"
- "lukeshu.com/btrfs-tools/pkg/btrfs/btrfstyp"
+ "lukeshu.com/btrfs-tools/pkg/btrfs/internal"
)
// The Key for this item is a UUID, and the item is a list of
// subvolume IDs (ObjectIDs) that that UUID maps to.
type UUIDMap struct { // UUID_SUBVOL=251 UUID_RECEIVED_SUBVOL=252
- SubvolIDs []btrfstyp.ObjID
+ SubvolIDs []internal.ObjID
}
func (o *UUIDMap) UnmarshalBinary(dat []byte) (int, error) {
o.SubvolIDs = nil
var n int
for len(dat) > n {
- var subvolID btrfstyp.ObjID
+ var subvolID internal.ObjID
_n, err := binstruct.Unmarshal(dat[n:], &subvolID)
n += _n
if err != nil {