#define OBD_FAIL_LDLM_BL_CALLBACK 0x305
do_facet client sysctl -w lustre.fail_loc=0x80000305 # drop cb, evict
cancel_lru_locks mdc
- usleep 500 # wait to ensure first client is one that will be evicted
+ sleep 0.500s # wait to ensure first client is one that will be evicted
openfile -f O_RDONLY $MOUNT2/$tdir/f0
wait $OPENPID
dmesg | grep "entering recovery in server" && \
dd if=/dev/zero of=$DIR/$tfile bs=4k count=10000 &
pid=$!
while [ ! -e $DIR/$tfile ] ; do
- usleep 60 # give dd a chance to start
+ sleep 0.060s # give dd a chance to start
done
lfs getstripe $DIR/$tfile || return 1
# the page, guarnateeing that the unlock from the RPC completion would
# assert on trying to unlock the unlocked page.
test_41() {
+ [ $OSTCOUNT -lt 2 ] && \
+ echo "skipping test 41: we don't have a second OST to test with" && \
+ return
+
local f=$MOUNT/$tfile
# make sure the start of the file is ost1
lfs setstripe $f $((128 * 1024)) 0 0
mkdir $DIR1/d11
multiop $DIR1/d11/f O_c &
MULTIPID=$!
- usleep 200
+ sleep 0.200s
cp -p /bin/ls $DIR1/d11/f
$DIR2/d11/f
RC=$?
lctl clear
dd if=/dev/zero of=$DIR2/$tfile bs=$((4096+4))k conv=notrunc count=4 seek=3 &
DD2_PID=$!
- usleep 50
+ sleep 0.050s
log "dd 1 started"
dd if=/dev/zero of=$DIR1/$tfile bs=$((16384-1024))k conv=notrunc count=1 seek=4 &
#define OBD_FAIL_LDLM_GLIMPSE 0x30f
sysctl -w lustre.fail_loc=0x8000030f
ls -l $DIR2/$tfile &
- usleep 500
+ sleep 0.500s
dd if=/dev/zero of=$DIR1/$tfile bs=4k count=1
wait
}