local node=$(facet_active_host ost1)
# check whether obdfilter is cache capable at all
- if ! get_obdfilter_param $node '' read_cache_enable >/dev/null; then
+ if ! get_osd_param $node '' read_cache_enable >/dev/null; then
echo "not cache-capable obdfilter"
return 0
fi
- local MAX=$(get_obdfilter_param $node '' readcache_max_filesize | \
+ local MAX=$(get_osd_param $node '' readcache_max_filesize | \
head -n 1)
- set_obdfilter_param $node '' readcache_max_filesize 4096
+ set_osd_param $node '' readcache_max_filesize 4096
dd if=/dev/urandom of=$TMP/$tfile bs=512k count=32
local SUM=$(cksum $TMP/$tfile | cut -d" " -f 1,2)
cp $TMP/$tfile $DIR1/$tfile
[ "$(cat $TMP/sum2)" = "$SUM" ] || \
error "$DIR2/$tfile $(cat $TMP/sum2) != $SUM"
done
- set_obdfilter_param $node '' readcache_max_filesize $MAX
+ set_osd_param $node '' readcache_max_filesize $MAX
rm $DIR1/$tfile
}
run_test 19 "test concurrent uncached read races ==============="
mv $DIR1/$tfile $DIR1/$tfile-2 &
PID1=$!
sleep 1
- stat $DIR2/$tfile > /dev/null && "stat must fail"
+ stat $DIR2/$tfile > /dev/null && error "stat must fail"
check_pdo_conflict $PID1 && { wait $PID1; error "getattr isn't blocked"; }
rm -r $DIR1/*
return 0