From 29e07af5ae77e0ddf9ccfb77684f9713627b2ceb Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 11 Oct 2017 09:15:44 -0700 Subject: [PATCH] Fix chattr/cleanup failure The chattr cleanup step may fail to delete the user if there is still an active process running as that user. Retry the userdel when this occurs to eliminate spurious false positves. ERROR: userdel quser1 exited 8 userdel: user quser1 is currently used by process 26814 Reviewed-by: George Melikov Reviewed-by: Giuseppe Di Natale Signed-off-by: Brian Behlendorf Closes #6749 --- tests/zfs-tests/include/libtest.shlib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/zfs-tests/include/libtest.shlib b/tests/zfs-tests/include/libtest.shlib index d72ebc8ed..14348d7c6 100644 --- a/tests/zfs-tests/include/libtest.shlib +++ b/tests/zfs-tests/include/libtest.shlib @@ -2296,7 +2296,7 @@ function del_user # fi if id $user > /dev/null 2>&1; then - log_must userdel $user + log_must_retry "currently used" 5 userdel $user fi [[ -d $basedir/$user ]] && rm -fr $basedir/$user -- 2.40.0