Whamcloud - gitweb
LU-14725 tests: sanity/27Q to remove own symlink in /tmp 75/43875/5
authorAlex Zhuravlev <bzzz@whamcloud.com>
Sun, 30 May 2021 15:36:39 +0000 (18:36 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 8 Jun 2021 21:59:18 +0000 (21:59 +0000)
otherwise any subsequent restart of MDS/MGS on a local setup
with ZFS backend gets stuck as zpool import scans /tmp and
stat's every found file.

Test-Parameters: trivial
Fixes: cd4caef54f ("LU-14583 llapi: handle symlinks in llapi_file_get_stripe()")
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I2eb4cb8819670acef0302e1fe5ab767be7f46842
Reviewed-on: https://review.whamcloud.com/43875
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>

index 625bc80..cfe0193 100755 (executable)
@@ -3321,6 +3321,7 @@ run_test 27P "basic ops on foreign dir of foreign_symlink type"
 test_27Q() {
        rm -f $TMP/$tfile $TMP/$tfile.loop $TMP/$tfile.none $TMP/$tfile.broken
 test_27Q() {
        rm -f $TMP/$tfile $TMP/$tfile.loop $TMP/$tfile.none $TMP/$tfile.broken
+       stack_trap "rm -f $TMP/$tfile*"
        test_mkdir $DIR/$tdir-1
        test_mkdir $DIR/$tdir-2
        test_mkdir $DIR/$tdir-1
        test_mkdir $DIR/$tdir-2