snapshots/blockfile: use loop if options is empty
Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is contained in:
parent
4b7145cfd3
commit
bb82f3683e
@ -122,7 +122,7 @@ func NewSnapshotter(root string, opts ...Opt) (snapshots.Snapshotter, error) {
|
||||
config.fsType = "ext4"
|
||||
}
|
||||
|
||||
if config.mountOptions != nil {
|
||||
if config.mountOptions == nil {
|
||||
config.mountOptions = []string{"loop"}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user