# 1 stripe on ost2
lfs setstripe $f -s $((128 * 1024)) -i 1 -c 1
+ get_stripe_info client $f
+ if [ $stripe_index -ne 1 ]; then
+ lfs getstripe $f
+ error "$f: different stripe offset ($stripe_index)" && return
+ fi
do_facet client cp $SAMPLE_FILE $f
sync
do_facet client mkdir -p $DIR/$tdir
f=$DIR/$tdir/$tfile
- f2=$DIR/$tdir/${tfile}-2
cancel_lru_locks osc
pgcache_empty || return 1
# shouldn't have to set stripe size of count==1
lfs setstripe $f -s $((128 * 1024)) -i 0 -c 1
- lfs setstripe $f2 -s $((128 * 1024)) -i 0 -c 1
+ get_stripe_info client $f
+ if [ $stripe_index -ne 0 ]; then
+ lfs getstripe $f
+ error "$f: different stripe offset ($stripe_index)" && return
+ fi
do_facet client cp $SAMPLE_FILE $f
sync
# cache after the client reconnects?
rc=0
pgcache_empty || rc=2
- rm -f $f $f2
+ rm -f $f
return $rc
}
run_test 18b "eviction and reconnect clears page cache (2766)"
do_facet client mkdir -p $DIR/$tdir
f=$DIR/$tdir/$tfile
- f2=$DIR/$tdir/${tfile}-2
cancel_lru_locks osc
pgcache_empty || return 1
# shouldn't have to set stripe size of count==1
lfs setstripe $f -s $((128 * 1024)) -i 0 -c 1
- lfs setstripe $f2 -s $((128 * 1024)) -i 0 -c 1
+ get_stripe_info client $f
+ if [ $stripe_index -ne 0 ]; then
+ lfs getstripe $f
+ error "$f: different stripe offset ($stripe_index)" && return
+ fi
do_facet client cp $SAMPLE_FILE $f
sync
# cache after the client reconnects?
rc=0
pgcache_empty || rc=2
- rm -f $f $f2
+ rm -f $f
return $rc
}
run_test 18c "Dropped connect reply after eviction handing (14755)"