]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mount.ceph: properly handle -o strictatime 30240/head
authorJeff Layton <jlayton@redhat.com>
Tue, 6 Aug 2019 19:46:31 +0000 (15:46 -0400)
committerNathan Cutler <ncutler@suse.com>
Sat, 7 Sep 2019 09:13:20 +0000 (11:13 +0200)
Otherwise, we get -EINVAL when a mount is attempted.

Fixes: https://tracker.ceph.com/issues/41144
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 51e738d1218b41252ca595641a6e589f98349518)

src/mount/mount.ceph.c

index 7216c28b4ccfa4dabd02e9eeb384c967571950c7..a9c52ffcc63e0d4a636b2e584bccbc520432d6bb 100644 (file)
@@ -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) {