diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-06 01:48:48 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-08 00:15:58 -0600 |
commit | 5647659f27f8aa18bc10ca4742f8856162325d5c (patch) | |
tree | 249fd2d4ea5e0e8bf6dab24d305a4daa5bf0cc6e /pkg/btrfsmisc/print_tree.go | |
parent | b392ad64a8fd04d20b35ad21d2d4ea3ff2778e3f (diff) |
file reading!
Diffstat (limited to 'pkg/btrfsmisc/print_tree.go')
-rw-r--r-- | pkg/btrfsmisc/print_tree.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pkg/btrfsmisc/print_tree.go b/pkg/btrfsmisc/print_tree.go index 6b4ff96..61c5423 100644 --- a/pkg/btrfsmisc/print_tree.go +++ b/pkg/btrfsmisc/print_tree.go @@ -156,18 +156,18 @@ func PrintTree(fs *btrfs.FS, root btrfsvol.LogicalAddr) error { len(body.BodyInline), body.RAMBytes, body.Compression) case btrfsitem.FILE_EXTENT_PREALLOC: fmt.Printf("\t\tprealloc data disk byte %v nr %v\n", - body.BodyPrealloc.DiskByteNr, - body.BodyPrealloc.DiskNumBytes) + body.BodyExtent.DiskByteNr, + body.BodyExtent.DiskNumBytes) fmt.Printf("\t\tprealloc data offset %v nr %v\n", - body.BodyPrealloc.Offset, - body.BodyPrealloc.NumBytes) + body.BodyExtent.Offset, + body.BodyExtent.NumBytes) case btrfsitem.FILE_EXTENT_REG: fmt.Printf("\t\textent data disk byte %d nr %d\n", - body.BodyReg.DiskByteNr, - body.BodyReg.DiskNumBytes) + body.BodyExtent.DiskByteNr, + body.BodyExtent.DiskNumBytes) fmt.Printf("\t\textent data offset %d nr %d ram %v\n", - body.BodyReg.Offset, - body.BodyReg.NumBytes, + body.BodyExtent.Offset, + body.BodyExtent.NumBytes, body.RAMBytes) fmt.Printf("\t\textent compression %v\n", body.Compression) |