]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mount.ceph: properly handle -o strictatime 29518/head
authorJeff Layton <jlayton@redhat.com>
Tue, 6 Aug 2019 19:46:31 +0000 (15:46 -0400)
committerJeff Layton <jlayton@redhat.com>
Tue, 6 Aug 2019 20:07:54 +0000 (16:07 -0400)
Otherwise, we get -EINVAL when a mount is attempted.

Fixes: https://tracker.ceph.com/issues/41144
Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/mount/mount.ceph.c

index 24d320833f2d164b2fea0661a3dd4b554e623f1b..06aae9ee8852c1185f4b280b0f2aa5015e75cb0c 100644 (file)
@@ -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) {