]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mount.ceph.c: do not pass nofail to the kernel 26992/head
authorKenneth Waegeman <kenneth.waegeman@ugent.be>
Fri, 15 Mar 2019 15:47:06 +0000 (16:47 +0100)
committerKenneth Waegeman <kenneth.waegeman@ugent.be>
Fri, 15 Mar 2019 16:07:40 +0000 (17:07 +0100)
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>
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) {