Merge pull request #8594 from fuweid/fix-blockfile-mount

snapshots/blockfile: use loop if options is empty
This commit is contained in:
Derek McGowan
2023-05-30 08:33:09 -07:00
committed by GitHub

View File

@@ -121,7 +121,7 @@ func NewSnapshotter(root string, opts ...Opt) (snapshots.Snapshotter, error) {
config.fsType = "ext4" config.fsType = "ext4"
} }
if config.mountOptions != nil { if config.mountOptions == nil {
config.mountOptions = []string{"loop"} config.mountOptions = []string{"loop"}
} }