From: Jeff Layton Date: Tue, 6 Aug 2019 19:46:31 +0000 (-0400) Subject: mount.ceph: properly handle -o strictatime X-Git-Tag: v15.1.0~1840^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F29518%2Fhead;p=ceph.git 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 --- 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) {