From: Jeff Layton Date: Tue, 6 Aug 2019 19:46:31 +0000 (-0400) Subject: mount.ceph: properly handle -o strictatime X-Git-Tag: v14.2.5~218^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2e1881e9cb3bd6f9d06d3d4ac489ced61fcb772f;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 1345e7f45125..5d600da57110 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) {