diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-06-26 22:19:29 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-06-26 22:19:41 -0600 |
commit | 8463b2bff37978124e5210a59590f1ac33e453c0 (patch) | |
tree | 37fc4c13f1fdaedf20ee48a53653414fbb3d9ed7 /cmd/btrfs-fsck/pass1.go | |
parent | 64c04fc690ec5a276e11500691173962bbe4d99e (diff) |
use devid instead of devuuid, add a Mapping struct
Diffstat (limited to 'cmd/btrfs-fsck/pass1.go')
-rw-r--r-- | cmd/btrfs-fsck/pass1.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/btrfs-fsck/pass1.go b/cmd/btrfs-fsck/pass1.go index aada80d..fada257 100644 --- a/cmd/btrfs-fsck/pass1.go +++ b/cmd/btrfs-fsck/pass1.go @@ -229,7 +229,7 @@ func pass1ReconstructChunksOneDev( resolvedPAddrs, _ := fs.Resolve(laddr) for _, readPAddr := range readPAddrs { if _, ok := resolvedPAddrs[btrfs.QualifiedPhysicalAddr{ - Dev: superblock.Data.DevItem.DevUUID, + Dev: superblock.Data.DevItem.DevID, Addr: readPAddr, }]; !ok { lostAndFoundNodes[readPAddr] = laddr @@ -288,7 +288,7 @@ func pass1ReconstructChunksOneDev( panic("TODO: mismatch") } chunk.Stripes = append(chunk.Stripes, btrfsitem.ChunkStripe{ - DeviceID: superblock.Data.DevItem.DeviceID, + DeviceID: superblock.Data.DevItem.DevID, DeviceUUID: superblock.Data.DevItem.DevUUID, Offset: stripe.PAddr, }) |