From: Jeff Layton Date: Tue, 6 Aug 2019 19:46:31 +0000 (-0400) Subject: mount.ceph: properly handle -o strictatime X-Git-Tag: v13.2.7~92^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8e93bf579bfeecfb4c582ad0774ecf08a98f6c22;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 (cherry picked from commit 51e738d1218b41252ca595641a6e589f98349518) --- diff --git a/src/mount/mount.ceph.c b/src/mount/mount.ceph.c index 7216c28b4cc..a9c52ffcc63 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) {