Skip to content

Commit

Permalink
mount.ceph: properly handle -o strictatime
Browse files Browse the repository at this point in the history
Otherwise, we get -EINVAL when a mount is attempted.

Fixes: https://tracker.ceph.com/issues/41144
Signed-off-by: Jeff Layton <jlayton@redhat.com>
  • Loading branch information
jtlayton committed Aug 6, 2019
1 parent b6b3724 commit 51e738d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mount/mount.ceph.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 51e738d

Please sign in to comment.