summaryrefslogtreecommitdiff
path: root/cmd/btrfs-mount/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/btrfs-mount/main.go')
-rw-r--r--cmd/btrfs-mount/main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/btrfs-mount/main.go b/cmd/btrfs-mount/main.go
index e059351..64cae30 100644
--- a/cmd/btrfs-mount/main.go
+++ b/cmd/btrfs-mount/main.go
@@ -71,10 +71,12 @@ func Main(ctx context.Context, mountpoint string, imgfilenames ...string) (err e
grp.Go("main", func(ctx context.Context) error {
defer atomic.StoreUint32(&mounted, 0)
rootSubvol := &Subvolume{
- FS: fs,
+ Subvolume: btrfs.Subvolume{
+ FS: fs,
+ TreeID: btrfs.FS_TREE_OBJECTID,
+ },
DeviceName: tryAbs(imgfilenames[0]),
Mountpoint: mountpoint,
- TreeID: btrfs.FS_TREE_OBJECTID,
}
return rootSubvol.Run(ctx)
})