]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mount.ceph.c: do not pass nofail to the kernel 27851/head
authorKenneth Waegeman <kenneth.waegeman@ugent.be>
Fri, 15 Mar 2019 15:47:06 +0000 (16:47 +0100)
committerVicente Cheng <freeze.bilsted@gmail.com>
Mon, 29 Apr 2019 10:07:03 +0000 (10:07 +0000)
nofail is a userspace level option and shouldn't be passed to the kernel

Fixes: https://tracker.ceph.com/issues/23262
Signed-off-by: Kenneth Waegeman <kenneth.waegeman@ugent.be>
(cherry picked from commit 51676e602969c5643c31ed26d7c611f43470c8e4)

src/mount/mount.ceph.c

index 1cdf4a14816f4f5f56a70521f99e7479b38c5c96..1345e7f451257771666bee6c6d6a49fc756a3493 100644 (file)
@@ -150,6 +150,8 @@ static char *parse_options(const char *data, int *filesys_flags)
                        skip = 1;  /* ignore */
                } else if (strncmp(data, "_netdev", 7) == 0) {
                        skip = 1;  /* ignore */
+               } else if (strncmp(data, "nofail", 6) == 0) {
+                       skip = 1;  /* ignore */
 
                } else if (strncmp(data, "secretfile", 10) == 0) {
                        if (!value || !*value) {