[ -e $DIR/$tdir ] || $LFS mkdir -i 0 $DIR/$tdir
fi
chmod 0777 $DIR/$tdir
- $SETSTRIPE -c 1 /$DIR/$tdir
+ $LFS setstripe -c 1 /$DIR/$tdir
trap "cleanup_rr_alloc $clients $mntpt_root $rr_alloc_MNTPTS" EXIT ERR
for i in $(seq 0 $((rr_alloc_MNTPTS - 1))); do
restore_lustre_params < $qos_prec_objs
rm -f $qos_prec_objs
- diff_max_min_arr=($($GETSTRIPE -r $DIR/$tdir/ |
+ diff_max_min_arr=($($LFS getstripe -r $DIR/$tdir/ |
grep "lmm_stripe_offset:" | awk '{print $2}' | sort -n |
uniq -c | awk 'NR==1 {min=max=$1} \
{ $1<min ? min=$1 : min; $1>max ? max=$1 : max} \
mount_client $DIR2
#grant lock1, export2
- $SETSTRIPE -i -0 $DIR2/$tfile || return 1
- $MULTIOP $DIR2/$tfile Ow || return 2
+ $LFS setstripe -i -0 $DIR2/$tfile || error "setstripe failed"
+ $MULTIOP $DIR2/$tfile Ow || error "multiop failed"
#define OBD_FAIL_LDLM_BL_EVICT 0x31e
do_facet ost $LCTL set_param fail_loc=0x31e
# Since the client just mounted, its last_rcvd entry is not on disk.
# Send an RPC so exp_need_sync forces last_rcvd to commit this export
# so the client can reconnect during OST recovery (LU-924, LU-1582)
- $SETSTRIPE -i 0 $DIR/$tfile
+ $LFS setstripe -i 0 $DIR/$tfile
dd if=/dev/zero of=$DIR/$tfile bs=1M count=1 conv=sync
# make sure MGS's state is Partial
test_108() {
mkdir -p $DIR/$tdir
- $SETSTRIPE -c 1 -i 0 $DIR/$tdir
+ $LFS setstripe -c 1 -i 0 $DIR/$tdir
dd if=/dev/zero of=$DIR/$tdir/$tfile bs=1M count=256 &
local dd_pid=$!
drop_update_reply $mdtidx "$LFS mkdir -i $mdtidx -c2 $remote_dir" ||
error "lfs mkdir failed"
- diridx=$($GETSTRIPE -m $remote_dir)
+ diridx=$($LFS getstripe -m $remote_dir)
[ $diridx -eq $mdtidx ] || error "$diridx != $mdtidx"
rm -rf $DIR/$tdir || error "rmdir failed"
rm -f $DIR/$tfile
# get a lock on client so that export would reach the stale list
- $SETSTRIPE -i 0 $DIR/$tfile || error "setstripe failed"
+ $LFS setstripe -i 0 $DIR/$tfile || error "setstripe failed"
dd if=/dev/zero of=$DIR/$tfile bs=4096 count=1 conv=fsync ||
error "dd failed"
rm -f $DIR/$tfile
# get a lock on client so that export would reach the stale list
- $SETSTRIPE -i 0 $DIR/$tfile || error "setstripe failed"
+ $LFS setstripe -i 0 $DIR/$tfile || error "setstripe failed"
dd if=/dev/zero of=$DIR/$tfile count=1 || error "dd failed"
# another IO under the same lock
echo "Verifying imported size $LSZ=$ASZ"
[[ $LSZ -eq $ASZ ]] || error "Incorrect size $LSZ != $ASZ"
echo -n "Verifying released pattern: "
- local PTRN=$($GETSTRIPE -L $f)
+ local PTRN=$($LFS getstripe -L $f)
echo $PTRN
[[ $PTRN == released ]] || error "Is not released"
local fid=$(path2fid $f)
test_11a() {
check_mount_and_prep
- $SETSTRIPE -c 1 -i 0 $DIR/$tdir
+ $LFS setstripe -c 1 -i 0 $DIR/$tdir
createmany -o $DIR/$tdir/f 64 || error "(0) Fail to create 64 files."
echo "stopall"
test_11b() {
check_mount_and_prep
- $SETSTRIPE -c 1 -i 0 $DIR/$tdir
+ $LFS setstripe -c 1 -i 0 $DIR/$tdir
echo "set fail_loc=0x160d to skip the updating LAST_ID on-disk"
#define OBD_FAIL_LFSCK_SKIP_LASTID 0x160d
test_12() {
check_mount_and_prep
- $SETSTRIPE -c 1 -i 0 $DIR/$tdir
+ $LFS setstripe -c 1 -i 0 $DIR/$tdir
#define OBD_FAIL_OSD_COMPAT_INVALID_ENTRY 0x195
do_facet ost1 $LCTL set_param fail_loc=0x195
test_13() {
check_mount_and_prep
- $SETSTRIPE -c 1 -i 0 $DIR/$tdir
+ $LFS setstripe -c 1 -i 0 $DIR/$tdir
#define OBD_FAIL_OSD_COMPAT_NO_ENTRY 0x196
do_facet ost1 $LCTL set_param fail_loc=0x196