run_test 817 "nfsd won't cache write lock for exec file"
test_818() {
- mkdir $DIR/$tdir
- $LFS setstripe -c1 -i0 $DIR/$tfile
- $LFS setstripe -c1 -i1 $DIR/$tfile
+ test_mkdir -i0 -c1 $DIR/$tdir
+ $LFS setstripe -c1 -i0 $DIR/$tdir/$tfile
+ $LFS setstripe -c1 -i1 $DIR/$tdir/$tfile
stop $SINGLEMDS
+
+ # restore osp-syn threads
+ stack_trap "fail $SINGLEMDS"
+
#define OBD_FAIL_OSP_CANT_PROCESS_LLOG 0x2105
do_facet $SINGLEMDS lctl set_param fail_loc=0x80002105
start $SINGLEMDS $(mdsdevname ${SINGLEMDS//mds/}) $MDS_MOUNT_OPTS ||
error "start $SINGLEMDS failed"
rm -rf $DIR/$tdir
+
+ local testid=$(echo $TESTNAME | tr '_' ' ')
+
+ do_facet mds1 dmesg | tac | sed "/$testid/,$ d" |
+ grep "run LFSCK" || error "run LFSCK is not suggested"
}
run_test 818 "unlink with failed llog"