From b649d4f1f69f82ad232ec342f9ae52f5e88d415e Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Tue, 31 Jul 2018 14:41:14 +0900 Subject: [PATCH] Add nonempty option to ceph-fuse to support ReadWriteMany fuse mount does not allow to mount directory if it contains some files. Due to this, currently scaled pod with cephfs failed to mount by ceph-fuse. This patch adds nonempty option to ceph-fuse command to support ReadWriteMany with ceph-fuse. --- pkg/cephfs/volumemounter.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/cephfs/volumemounter.go b/pkg/cephfs/volumemounter.go index 368d8359d..055690371 100644 --- a/pkg/cephfs/volumemounter.go +++ b/pkg/cephfs/volumemounter.go @@ -40,6 +40,7 @@ func mountFuse(mountPoint string, cr *credentials, volOptions *volumeOptions, vo "-n", cephEntityClientPrefix + cr.id, "--keyring", getCephKeyringPath(volUuid, cr.id), "-r", volOptions.RootPath, + "-o", "nonempty", } out, err := execCommand("ceph-fuse", args[:]...)