]> granicus.if.org Git - zfs/commit
ZTS: harden xattr/cleanup.ksh
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 25 Sep 2019 16:24:45 +0000 (09:24 -0700)
committerGitHub <noreply@github.com>
Wed, 25 Sep 2019 16:24:45 +0000 (09:24 -0700)
commit5e5cefbaee494c4e347216aafb945cc358f224ac
tree99688e604e3930aaf77ae90a294cbbe4b01ecef7
parentf81d5ef686e8198c38caa8622905647667165622
ZTS: harden xattr/cleanup.ksh

When the xattr/cleanup.ksh script is unable to remove the test group
due to an active process then it will not call default_cleanup.  This
will result in a zvol_ENOSPC/setup failure when attempting to create
the /mnt/testdir directory which will already exist.

Resolve the issue by performing the default_cleanup before removing
the test user and group to ensure this step always happens.  Also
allow one more retry to further minimize the likelihood of the
cleanup failing.

Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #9358
tests/zfs-tests/include/libtest.shlib
tests/zfs-tests/tests/functional/xattr/cleanup.ksh