X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fsanity.sh;h=82d0f76e12de129bad2530928718461e74b23649;hp=e4c4e0c4a27bb86ea404bead37d644e2d249a534;hb=f7392c7c4a16bc1127ee448f937ba81c50dcdfd5;hpb=b2d73351e64677cb8ff650d92a8744634f73e0fd diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index e4c4e0c..82d0f76 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -8049,6 +8049,25 @@ test_60e() { } run_test 60e "no space while new llog is being created" +test_60f() { + local old_path=$($LCTL get_param -n debug_path) + + stack_trap "$LCTL set_param debug_path=$old_path" + stack_trap "rm -f $TMP/$tfile*" + #define OBD_FAIL_PTLRPC_DUMP_LOG 0x50e + $LCTL set_param debug_path=$TMP/$tfile fail_loc=0x8000050e + test_mkdir $DIR/$tdir + rm -f $TMP/$tfile* 2> /dev/null + # retry in case the open is cached and not released + for (( i = 0; i < 100 && $(ls $TMP/$tfile* | wc -l) == 0; i++ )); do + echo $i > $DIR/$tdir/$tfile.$i && cat $DIR/$tdir/$tfile.$i + sleep 0.1 + done + ls $TMP/$tfile* + (( $(ls $TMP/$tfile* | wc -l) > 0 )) || error "$TMP/$tfile not dumped" +} +run_test 60f "change debug_path works" + test_60g() { local pid local i