MS_NOATIME
if (!(flags & MS_NOATIME))
if (flags & MS_NOATIME)
((flags & (MS_NOATIME | MS_NODIRATIME | MS_RELATIME |
if (flags & MS_NOATIME)
mnt_flags |= MS_NOATIME;
MS_NOATIME))
MS_NOATIME))
if (!test_unpriv_remount_atime(MS_NOATIME,
MS_NOATIME))
MS_NOATIME))
if (!test_unpriv_remount_atime(MS_NOATIME|MS_NODIRATIME,
if (!test_unpriv_remount("ramfs", NULL, MS_STRICTATIME, 0, MS_NOATIME))
ASSERT_EQ(mount("testing", "/tmp", "tmpfs", MS_NOATIME | MS_NODEV,
ASSERT_EQ(mount("testing", "/tmp/B", "tmpfs", MS_NOATIME | MS_NODEV,
ASSERT_EQ(mount("testing", "/tmp/B/BB", "tmpfs", MS_NOATIME | MS_NODEV,
ASSERT_EQ(mount("testing", "/mnt", "tmpfs", MS_NOATIME | MS_NODEV,
ASSERT_EQ(mount("testing", "/mnt/A", "tmpfs", MS_NOATIME | MS_NODEV,
MS_NOATIME | MS_NODEV | MS_NOSUID, 0), 0);
ASSERT_EQ(mount("testing", "/mnt/A", "ramfs", MS_NOATIME | MS_NODEV,
mnt_flags |= MS_NOATIME;
ASSERT_EQ(mount("testing", "/tmp", "tmpfs", MS_NOATIME | MS_NODEV,
ASSERT_EQ(mount("testing", "/tmp/B", "tmpfs", MS_NOATIME | MS_NODEV,
ASSERT_EQ(mount("testing", "/tmp/B/BB", "tmpfs", MS_NOATIME | MS_NODEV,
ASSERT_EQ(mount("testing", "/mnt", "tmpfs", MS_NOATIME | MS_NODEV,
ASSERT_EQ(mount("testing", "/mnt/A", "tmpfs", MS_NOATIME | MS_NODEV,
MS_NOATIME | MS_NODEV | MS_NOSUID, 0), 0);
expected_flags &= ~MS_NOATIME;
expected_flags &= ~MS_NOATIME;
expected_flags &= ~(MS_RDONLY | MS_NOEXEC | MS_NOATIME | MS_NOSUID);
expected_flags &= ~(MS_RDONLY | MS_NOEXEC | MS_NOATIME | MS_NOSUID);
expected_flags |= MS_NOATIME;
expected_flags &= ~MS_NOATIME;
expected_flags |= MS_NOATIME;
if (mount("testing", "/tmp", "tmpfs", MS_NOATIME | MS_NODEV,
if (mount("testing", SET_GROUP_FROM, "tmpfs", MS_NOATIME | MS_NODEV,
ASSERT_EQ(mount("testing", "/tmp", "tmpfs", MS_NOATIME | MS_NODEV,
ASSERT_EQ(mount("testing", SET_GROUP_A, "tmpfs", MS_NOATIME | MS_NODEV,