]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mount.ceph: properly handle -o strictatime 30039/head
authorJeff Layton <jlayton@redhat.com>
Tue, 6 Aug 2019 19:46:31 +0000 (15:46 -0400)
committerNathan Cutler <ncutler@suse.com>
Fri, 30 Aug 2019 12:29:50 +0000 (14:29 +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 1345e7f451257771666bee6c6d6a49fc756a3493..5d600da57110b5b5224dcefd68e7e7e9498dc217 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) {