X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fsanity.sh;h=5b5b0dd268bc83d38712390d4f9cf45f36b3b390;hb=5bd85b467a4b6ef57d7a3c119296c9a317afc73b;hp=3a141d90663d9a961df55c05b83044f4bb8a3eac;hpb=d39b08def6512ee6ae883a0db62cebd808646208;p=fs%2Flustre-release.git diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 3a141d9..5b5b0dd 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -9498,20 +9498,6 @@ test_162() { } run_test 162 "path lookup sanity" -test_163() { - [ $PARALLEL == "yes" ] && skip "skip parallel run" && return - remote_mds_nodsh && skip "remote MDS with nodsh" && return - copytool --test $FSNAME || { skip "copytool not runnable: $?" && return; } - copytool $FSNAME & - sleep 1 - local uuid=$($LCTL get_param -n mdc.${FSNAME}-MDT0000-mdc-*.uuid) - # this proc file is temporary and linux-only - do_facet $SINGLEMDS lctl set_param mdt.${FSNAME}-MDT0000.mdccomm=$uuid ||\ - error "kernel->userspace send failed" - kill -INT $! -} -run_test 163 "kernel <-> userspace comms" - test_169() { # do directio so as not to populate the page cache log "creating a 10 Mb file" @@ -11474,6 +11460,22 @@ test_234() { } run_test 234 "xattr cache should not crash on ENOMEM" +test_235() { + [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.4.52) ] && + skip "Need MDS version at least 2.4.52" && return + flock_deadlock $DIR/$tfile + local RC=$? + case $RC in + 0) + ;; + 124) error "process hangs on a deadlock" + ;; + *) error "error executing flock_deadlock $DIR/$tfile" + ;; + esac +} +run_test 235 "LU-1715: flock deadlock detection does not work properly" + # # tests that do cleanup/setup should be run at the end #