mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
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
This commit is contained in:
@@ -2375,7 +2375,7 @@ function del_user #<logname> <basedir>
|
||||
fi
|
||||
|
||||
if id $user > /dev/null 2>&1; then
|
||||
log_must_retry "currently used" 5 userdel $user
|
||||
log_must_retry "currently used" 6 userdel $user
|
||||
fi
|
||||
|
||||
[[ -d $basedir/$user ]] && rm -fr $basedir/$user
|
||||
|
||||
Reference in New Issue
Block a user