Skip to content

Commit 0620edb

Browse files
committed
fix
1 parent 600f3c2 commit 0620edb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/blobfuse-proxy/server/server.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ func (server *MountServer) MountAzureBlob(ctx context.Context,
7373
args = "mount " + args
7474
// add this arg for blobfuse2 to solve the issue:
7575
// https://github.com/Azure/azure-storage-fuse/issues/1015
76-
args = args + " " + "--ignore-open-flags=true"
76+
if !strings.Contains(args, "--ignore-open-flags") {
77+
args = args + " " + "--ignore-open-flags=true"
78+
}
7779
cmd = exec.Command("blobfuse2", strings.Split(args, " ")...)
7880
} else {
7981
klog.V(2).Infof("using blobfuse V1 to mount")

0 commit comments

Comments
 (0)