Skip to content

Commit 99b61ae

Browse files
fuweiddcantah
authored andcommitted
snapshots/blockfile: use loop if options is empty
Signed-off-by: Wei Fu <[email protected]> (cherry picked from commit bb82f36) Signed-off-by: Danny Canter <[email protected]>
1 parent fd39769 commit 99b61ae

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)