From 51e738d1218b41252ca595641a6e589f98349518 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Tue, 6 Aug 2019 15:46:31 -0400 Subject: [PATCH] mount.ceph: properly handle -o strictatime Otherwise, we get -EINVAL when a mount is attempted. Fixes: https://tracker.ceph.com/issues/41144 Signed-off-by: Jeff Layton --- src/mount/mount.ceph.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mount/mount.ceph.c b/src/mount/mount.ceph.c index 24d320833f2..06aae9ee885 100644 --- a/src/mount/mount.ceph.c +++ b/src/mount/mount.ceph.c @@ -149,7 +149,8 @@ static char *parse_options(const char *data, int *filesys_flags) *filesys_flags |= MS_NODIRATIME; } else if (strncmp(data, "relatime", 8) == 0) { *filesys_flags |= MS_RELATIME; - + } else if (strncmp(data, "strictatime", 11) == 0) { + *filesys_flags |= MS_STRICTATIME; } else if (strncmp(data, "noauto", 6) == 0) { skip = 1; /* ignore */ } else if (strncmp(data, "_netdev", 7) == 0) { -- 2.47.3