HomeFreeBSD

ZTS: harden xattr/cleanup.ksh

Description

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

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Sep 25 2019, 4:24 PM
GitHub <noreply@github.com>Committed on Sep 25 2019, 4:24 PM
Parents
rGf81d5ef686e8: Add warning for zfs_vdev_elevator option removal
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG5e5cefbaee49: ZTS: harden xattr/cleanup.ksh (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Sep 25 2019, 4:24 PM