From 344a1398b5cf622697b8e6ae4c3814616d671327 Mon Sep 17 00:00:00 2001 From: Kenneth Waegeman Date: Fri, 15 Mar 2019 16:47:06 +0100 Subject: [PATCH] mount.ceph.c: do not pass nofail to the kernel 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 (cherry picked from commit 51676e602969c5643c31ed26d7c611f43470c8e4) --- src/mount/mount.ceph.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mount/mount.ceph.c b/src/mount/mount.ceph.c index 1cdf4a14816f4..1345e7f451257 100644 --- a/src/mount/mount.ceph.c +++ b/src/mount/mount.ceph.c @@ -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) { -- 2.39.5