Skip to content

Commit bb82f36

Browse files
committed
snapshots/blockfile: use loop if options is empty
Signed-off-by: Wei Fu <[email protected]>
1 parent 4b7145c commit bb82f36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

snapshots/blockfile/blockfile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func NewSnapshotter(root string, opts ...Opt) (snapshots.Snapshotter, error) {
122122
config.fsType = "ext4"
123123
}
124124

125-
if config.mountOptions != nil {
125+
if config.mountOptions == nil {
126126
config.mountOptions = []string{"loop"}
127127
}
128128

0 commit comments

Comments
 (0)