]> granicus.if.org Git - zfs/commit
ZTS: Update O_TMPFILE support check
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 15 May 2018 03:36:30 +0000 (20:36 -0700)
committerGitHub <noreply@github.com>
Tue, 15 May 2018 03:36:30 +0000 (20:36 -0700)
commit8c64fe04421664fbf908bbe928e14e2dfeadb058
tree38ea8e500e4a1af4216c8269cac56ba20e9757c8
parent38a19edd34f6a3fc0c8d0f6b9750fc2df2856c9f
ZTS: Update O_TMPFILE support check

In CentOS 7.5 the kernel provided a compatibility wrapper to support
O_TMPFILE.  This results in the test setup script correctly detecting
kernel support.  But the ZFS module was built without O_TMPFILE
support due to the non-standard CentOS kernel interface.

Handle this case by updating the setup check to fail either when
the kernel or the ZFS module fail to provide support.  The reason
will be clearly logged in the test results.

Reviewed-by: Chunwei Chen <tuxoko@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7528
tests/zfs-tests/tests/functional/tmpfile/setup.ksh
tests/zfs-tests/tests/functional/tmpfile/tmpfile_test.c