diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-04-16 23:35:04 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-04-17 12:37:34 -0600 |
commit | fdbe325563be8e223ed8b9f2a89426cf39f4903e (patch) | |
tree | a77fc2569e98bd58d0db44e065e5eabc3638c0ea /lib/btrfs | |
parent | 4efa228eb104145bb0750fb68c0d9493dc5854d5 (diff) |
btrfs: Subvolume: loadFile: Fix errors around extent gaps
Diffstat (limited to 'lib/btrfs')
-rw-r--r-- | lib/btrfs/io4_fs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/btrfs/io4_fs.go b/lib/btrfs/io4_fs.go index 9b70713..1b7837e 100644 --- a/lib/btrfs/io4_fs.go +++ b/lib/btrfs/io4_fs.go @@ -423,7 +423,7 @@ func (sv *Subvolume) loadFile(_ context.Context, inode btrfsprim.ObjID, file *Fi if err != nil { file.Errs = append(file.Errs, fmt.Errorf("extent %v: %w", extent.OffsetWithinFile, err)) } - pos += size + pos = extent.OffsetWithinFile + size } if file.InodeItem != nil && pos != file.InodeItem.NumBytes { if file.InodeItem.NumBytes > pos { |