Whamcloud - gitweb
LU-11643 libext2fs: don't use O_DIRECT for files on tmpfs 80/37680/2 snapshot
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 21 Feb 2020 00:48:39 +0000 (17:48 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Sun, 23 Feb 2020 23:17:13 +0000 (23:17 +0000)
commitf94e4eef3f9d6a749798d4daddb6f67b708ea8c1
tree27587e766183076b2fcfdbe6b97b71ec208a37ec
parenta50869f6195d54ae856e3754fecf7ddec0c510f7
LU-11643 libext2fs: don't use O_DIRECT for files on tmpfs

If a filesystem image is on tmpfs, opening it with O_DIRECT for
reading the MMP will fail.  This is unnecessary, since the image
file can't really be open on another node at this point.  If the
open with O_DIRECT fails, retry without it when plausible.

Remove the special-casing of tmpfs from the mmp test cases.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I41f4b31657b06f62f10be8d6e524d303dd3ebbe5
Reviewed-on: https://review.whamcloud.com/37680
Tested-by: jenkins <devops@whamcloud.com>
lib/ext2fs/mmp.c
tests/f_mmp/script
tests/f_mmp_garbage/script
tests/m_image_mmp/script
tests/m_mmp/script
tests/m_mmp_bad_csum/script
tests/m_mmp_bad_magic/script
tests/t_mmp_1on/script
tests/t_mmp_2off/script