diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-07-25 12:31:30 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-07-25 12:35:33 -0600 |
commit | a2e7457d7fc339caac4e1f55d0eeadd732af60b1 (patch) | |
tree | 5091d751422bf3668318721cc654e247dca3b451 /lib/btrfsutil | |
parent | 17a9ea959d2f77b1ba55d45ac3feaf918f42f7dd (diff) |
Don't try to read the chunk tree until all devices are added
Diffstat (limited to 'lib/btrfsutil')
-rw-r--r-- | lib/btrfsutil/open.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/btrfsutil/open.go b/lib/btrfsutil/open.go index abbd466..91bb943 100644 --- a/lib/btrfsutil/open.go +++ b/lib/btrfsutil/open.go @@ -43,5 +43,8 @@ func Open(ctx context.Context, flag int, filenames ...string) (*btrfs.FS, error) return nil, fmt.Errorf("device file %q: %w", filename, err) } } + if err := fs.InitChunks(ctx); err != nil { + dlog.Errorf(ctx, "error: InitChunks: %v", err) + } return fs, nil } |