diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-06 03:05:07 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-08 00:15:59 -0600 |
commit | cc09287d752ec6d9c4d4876ab41c4e5859b90f78 (patch) | |
tree | 62be91b774959caf88bc160cf5ef6d244c6429c3 /cmd/btrfs-mount/main.go | |
parent | 5647659f27f8aa18bc10ca4742f8856162325d5c (diff) |
Move subvol.go to btrfs/io3_fs.go
Diffstat (limited to 'cmd/btrfs-mount/main.go')
-rw-r--r-- | cmd/btrfs-mount/main.go | 6 |
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) }) |