From 8e93bf579bfeecfb4c582ad0774ecf08a98f6c22 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 (cherry picked from commit 51e738d1218b41252ca595641a6e589f98349518) --- 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 7216c28b4ccf..a9c52ffcc63e 100644 --- a/src/mount/mount.ceph.c +++ b/src/mount/mount.ceph.c @@ -145,7 +145,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