]> git.ipfire.org Git - thirdparty/util-linux.git/commit
test: (lsfd) ignore noatime mnt flag when testing a fd opening / directory
authorMasatake YAMATO <yamato@redhat.com>
Thu, 16 Jun 2022 13:42:12 +0000 (22:42 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Thu, 16 Jun 2022 13:42:12 +0000 (22:42 +0900)
commitaf229df78cbff7da32fd2ab732a74d63f36909e3
treecd74c74dabeaf2250f8f67c473b45aecc3d1f16b
parent224410df38d03a572a3b5cd3000906fb1294ce4e
test: (lsfd) ignore noatime mnt flag when testing a fd opening / directory

Close #1717.

If the file system where the target directory is is mounted with
"noatime" flag, Linux kernel may set O_NOATIME to the fd associated
with the target directory. As a result, mkfds-directory test failed.

With this change, mkfds-directory deletes "noatime" from the output
of lsfd before verifying the output if "noatime" mount flag is set
to the file system where the directory opened by mkfds-directory is.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/ts/lsfd/mkfds-directory