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
commit f49789fd54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"}
} }