summaryrefslogtreecommitdiff
path: root/lib/btrfs
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-03-30 19:08:25 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2023-03-30 19:08:25 -0600
commit5d0bd02aefed7e08f3afddf20066605149cb0b87 (patch)
treea1c8b09c01b761c4b294a701c091bb047a100397 /lib/btrfs
parent3d5e080385ed64ca5e0810263acc2d9970f14baa (diff)
parent8c2de0e63ac106b910173ed17f394b725103596f (diff)
Merge branch 'lukeshu/tree-api-pt4-touchup'
Diffstat (limited to 'lib/btrfs')
-rw-r--r--lib/btrfs/io3_btree.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/btrfs/io3_btree.go b/lib/btrfs/io3_btree.go
index 01797df..50736cf 100644
--- a/lib/btrfs/io3_btree.go
+++ b/lib/btrfs/io3_btree.go
@@ -92,11 +92,13 @@ var _ btrfstree.Forrest = (*FS)(nil)
// ReadableFS //////////////////////////////////////////////////////////////////
type ReadableFS interface {
- btrfstree.Forrest
+ Name() string
- Superblock() (*btrfstree.Superblock, error)
+ // For reading btrees.
+ btrfstree.Forrest
- Name() string
+ // For reading the superblock and raw nodes.
+ btrfstree.NodeSource
// For reading file contents.
diskio.ReaderAt[btrfsvol.LogicalAddr]