mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +00:00
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.
This commit is contained in:
parent
6f484f92fc
commit
b649d4f1f6
@ -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[:]...)
|
||||
|
Loading…
Reference in New Issue
Block a user