Skip to content

Commit bd9a388

Browse files
authored
Merge pull request #827 from cvvz/fix-mount-failed-on-ubuntu-22.04
fix: mount failed on ubuntu 22.04(aks 1.25.2)
2 parents d78e046 + 9952ea5 commit bd9a388

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/blobfuse-proxy/server/server.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ func (server *MountServer) MountAzureBlob(ctx context.Context,
7171
if protocol == blob.Fuse2 || server.blobfuseVersion == BlobfuseV2 {
7272
klog.V(2).Infof("using blobfuse V2 to mount")
7373
args = "mount " + args
74+
// add this arg for blobfuse2 to solve the issue:
75+
// https://github.com/Azure/azure-storage-fuse/issues/1015
76+
if !strings.Contains(args, "--ignore-open-flags") {
77+
klog.V(2).Infof("append --ignore-open-flags=true to mount args")
78+
args = args + " " + "--ignore-open-flags=true"
79+
}
7480
cmd = exec.Command("blobfuse2", strings.Split(args, " ")...)
7581
} else {
7682
klog.V(2).Infof("using blobfuse V1 to mount")

0 commit comments

Comments
 (0)