X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fsanityn.sh;fp=lustre%2Ftests%2Fsanityn.sh;h=0ab469be3e6f86166ef2a1daba5fe0a18c849f07;hb=cbc62b0b829afdceaa01820996e567b5bdeb281c;hp=752f9173267f7ea06dc8d58ac0c4be36daf8c5d7;hpb=6a4be282bbbd5c6d92787abe9ae316e3c702192c;p=fs%2Flustre-release.git diff --git a/lustre/tests/sanityn.sh b/lustre/tests/sanityn.sh index 752f917..0ab469b 100755 --- a/lustre/tests/sanityn.sh +++ b/lustre/tests/sanityn.sh @@ -5217,8 +5217,28 @@ test_102() { echo "Test file_handle syscalls" > $DIR/$tfile || error "write failed" check_fhandle_syscalls $DIR/$tfile $DIR2 || - error "check_fhandle_syscalls failed" - rm -f $DIR2/$tfile + error "check_fhandle_syscalls $tfile failed" + + # test this is working on DNE directories also + if (( MDSCOUNT > 1 MDS1_VERSION >= $(version_code 2.14.52) )); then + $LFS mkdir -i 1 $DIR/$tdir.remote + cancel_lru_locks mdc + check_fhandle_syscalls $DIR/$tdir.remote $DIR2 || + error "check_fhandle_syscalls $tdir.remote failed" + $LFS mkdir -c -1 $DIR/$tdir.remote/subdir + cancel_lru_locks mdc + check_fhandle_syscalls $DIR/$tdir.remote/subdir $DIR2 || + error "check_fhandle_syscalls $tdir.remote/subdir fail" + + $LFS mkdir -c -1 $DIR/$tdir.stripe + cancel_lru_locks mdc + check_fhandle_syscalls $DIR/$tdir.stripe $DIR2 || + error "check_fhandle_syscalls $tdir.stripe failed" + $LFS mkdir -c -1 $DIR/$tdir.stripe/subdir + cancel_lru_locks mdc + check_fhandle_syscalls $DIR/$tdir.stripe/subdir $DIR2 || + error "check_fhandle_syscalls $tdir.stripe/subdir fail" + fi } run_test 102 "Test open by handle of unlinked file"