[LU-10447] Replace use of $SETSTRIPE and $GETSTRIPE with '$LFS setstripe' and '$LFS getstripe' in test suites Created: 02/Jan/18  Updated: 18/Jan/22  Resolved: 11/Mar/20

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.11.0, Lustre 2.10.2, Lustre 2.12.0, Lustre 2.13.0
Fix Version/s: Lustre 2.14.0

Type: Improvement Priority: Minor
Reporter: James Nunez (Inactive) Assignee: James Nunez (Inactive)
Resolution: Fixed Votes: 0
Labels: easy, tests

Rank (Obsolete): 9223372036854775807

 Description   

Many Lustre test suites still use $SETSTRIPE and $GETSTRIPE for'$LFS setstripe' and '$LFS getstripe', respectively. Per Andreas Dilger, we should replace use of $SETSTRIPE and $GETSTRIPE with $LFS setstrpe and $LFS getstripe in the Lustre test suites since this was only needed during the ancient transition from the standalone "lstripe" binary.

As of the current master branch, tag 2.10.56 (future 2.11), we have the following uses of $GETSTRIPE and $SETSTRIPE:

# grep SETSTRIPE *.sh
conf-sanity.sh:	$SETSTRIPE -c -1 $MOUNT2 || error "$SETSTRIPE -c -1 $MOUNT2 failed"
conf-sanity.sh:	$SETSTRIPE -c -1 $MOUNT || error "$SETSTRIPE -c -1 $MOUNT failed"
conf-sanity.sh:	$SETSTRIPE -c -1 $DIR/$tfile || error "$SETSTRIPE failed"
conf-sanity.sh:	$SETSTRIPE -c -1 -i 0 $DIR/$tdir/2 ||
conf-sanity.sh:		error "$SETSTRIPE $DIR/$tdir/2 failed"
conf-sanity.sh:	$SETSTRIPE -c -1 $MOUNT/$tdir ||
conf-sanity.sh:		error "$SETSTRIPE -c -1 $MOUNT/$tdir failed"
conf-sanity.sh:	$SETSTRIPE -c -1 -S 1M $DIR/$tdir || error "$SETSTRIPE failed"
conf-sanity.sh:		$SETSTRIPE --stripe-count=-1 $DIR/$tfile ||
conf-sanity.sh:		$SETSTRIPE -i 0 $DIR/$tdir ||
conf-sanity.sh:			error "$SETSTRIPE -i 0 $DIR/$tdir failed"
conf-sanity.sh:	local cmd="$SETSTRIPE -o $ost_indices $file"
conf-sanity.sh:	cmd="$SETSTRIPE -o $ost_indices $file"
conf-sanity.sh:	cmd="$SETSTRIPE -o $ost_indices -i $start_ost_idx $file"
conf-sanity.sh:	cmd="$SETSTRIPE"
conf-sanity.sh:	cmd="$SETSTRIPE -o $ost_indices $dir"
conf-sanity.sh:	cmd="$SETSTRIPE -p $ost_pool -o $ost_idx_in_list $file"
conf-sanity.sh:	cmd="$SETSTRIPE -p $ost_pool -o $ost_idx_in_list $file"
conf-sanity.sh:	$SETSTRIPE -E 1M -c 1 -E 64M -c 1 -E -1 -c -1 $file ||
conf-sanity.sh:	$SETSTRIPE -p $FSNAME $DIR/$tdir/d0 ||
conf-sanity.sh:	$SETSTRIPE -p $save_fsname $DIR/$tdir/f0 ||
ost-pools.sh:	$SETSTRIPE -c -1 -p $POOL $POOL_DIR
ost-pools.sh:	[[ $? -eq 0 ]] || error "$SETSTRIPE -p $POOL failed."
ost-pools.sh:	$SETSTRIPE -c 2 -p $INVALID_POOL $POOL_DIR 2>/dev/null
ost-pools.sh:	$SETSTRIPE -c 2 -p $NON_EXISTANT_POOL $POOL_DIR 2>/dev/null
ost-pools.sh:	$SETSTRIPE -c -1 $POOL_DIR
ost-pools.sh:	[[ $? -eq 0 ]] || error "$SETSTRIPE -p $POOL_DIR failed."
ost-pools.sh:	$SETSTRIPE -c -1 $POOL_FILE
ost-pools.sh:	[[ $? -eq 0 ]] || error "$SETSTRIPE -p $POOL_FILE failed."
ost-pools.sh:	$SETSTRIPE -i 1 -p $POOL2 $ROOT_POOL/$tfile 2>/dev/null
ost-pools.sh:	error "$SETSTRIPE with start index outside the pool did not fail."
ost-pools.sh:	$SETSTRIPE -c 1 $DIR/$tdir/testfile1 --pool "$pool" || \
ost-pools.sh:	$SETSTRIPE -c 1 $DIR/$tdir/testfile2 --pool "$FSNAME.$pool" || \
ost-pools.sh:	$SETSTRIPE -c 1 $DIR/$tdir/testdir  -p "$pool" || \
ost-pools.sh:	$SETSTRIPE -c 1 $DIR/$tdir/testdir  -p "$FSNAME.$pool" || \
ost-pools.sh:	$SETSTRIPE -c 1 $DIR/$tdir/testfile1 --pool "${pool}X" && \
ost-pools.sh:	$SETSTRIPE -c 1 $DIR/$tdir/testfile1 --pool "${pool%?}" && \
ost-pools.sh:	$SETSTRIPE -c 1 $dir3 # No pool assignment
ost-pools.sh:	$SETSTRIPE -c 1 $dir2/file4 # No pool assignment
ost-pools.sh:	$SETSTRIPE -c 1 -p $POOL $file
ost-pools.sh:	$SETSTRIPE -p $POOL -S 65536 -i 0 -c 1 $POOL_ROOT/dir2 ||
ost-pools.sh:		error "$SETSTRIPE $POOL_ROOT/dir2 failed"
ost-pools.sh:	$SETSTRIPE -S 65536 -i 0 -c 1 $POOL_ROOT/dir3 ||
ost-pools.sh:		error "$SETSTRIPE $POOL_ROOT/dir3 failed"
ost-pools.sh:		$SETSTRIPE -i 0 -c 1 $POOL_ROOT/$tfile
recovery-small.sh:	$SETSTRIPE -i -0 $DIR2/$tfile || return 1
recovery-small.sh:	$SETSTRIPE -i 0 $DIR/$tfile
recovery-small.sh:	$SETSTRIPE -c 1 -i 0 $DIR/$tdir
recovery-small.sh:	$SETSTRIPE -i 0 $DIR/$tfile || error "setstripe failed"
recovery-small.sh:	$SETSTRIPE -i 0 $DIR/$tfile || error "setstripe failed"
replay-dual.sh:	$SETSTRIPE -i 0 $MOUNT1/$tdir
replay-dual.sh:	$SETSTRIPE -i 0 $MOUNT2/$tfile-2
replay-dual.sh:	$SETSTRIPE -i 0 -c 1 $DIR/$tfile
replay-dual.sh:	$SETSTRIPE -i 0 -c 1 $DIR2/$tfile
replay-ost-single.sh:$SETSTRIPE $TDIR -i 0 -c 1
replay-ost-single.sh:	$SETSTRIPE -i 0 -c 1 $DIR/$tfile || error "setstripe failed"
replay-single.sh:	$SETSTRIPE -S $((128 * 1024)) -i 0 $f
replay-single.sh:	$SETSTRIPE --stripe-index=0 --stripe-count=1 $DIR/$tfile ||
replay-single.sh:		error "$SETSTRIPE failed for $DIR/$tfile"
replay-single.sh:	$SETSTRIPE --stripe-index=0 --stripe-count=1 $DIR/$tfile ||
replay-single.sh:		error "$SETSTRIPE failed"
replay-single.sh:	$SETSTRIPE -i 0 -c 1 $DIR/$tdir/${OST} || error "$SETSTRIPE failed"
replay-single.sh:	$SETSTRIPE --stripe-index=0 -c 1 $DIR/$tdir ||
replay-single.sh:		error "$SETSTRIPE failed for $DIR/$tdir"
replay-single.sh:	$SETSTRIPE -c -1 $DIR/$tdir || error "cannot $SETSTRIPE $DIR/$tdir"
replay-single.sh:	$SETSTRIPE -c 1 -p $FSNAME.$TESTNAME $DIR
replay-single.sh:	$SETSTRIPE -i 0 -c 1 $DIR/$tfile
replay-single.sh:	$SETSTRIPE -i 0 -c 1 $DIR/$tfile
replay-single.sh:	$SETSTRIPE -i 0 -c 1 $DIR/$tdir || error "$SETSTRIPE"
replay-single.sh:	$SETSTRIPE -i 0 -c 1 $DIR/$tdir/$tfile
replay-single.sh:    $SETSTRIPE -c $OSTCOUNT $dir/all ||
replay-single.sh:        $SETSTRIPE -i $i -c 1 $f || error "$SETSTRIPE failed to create $f"
replay-single.sh:	$SETSTRIPE -i 0 -c 1 $DIR/$tfile ||
replay-single.sh:		error "$SETSTRIPE  $DIR/$tfile failed"
sanity-lfsck.sh:	$SETSTRIPE -c 1 -i 0 $DIR/$tdir
sanity-lfsck.sh:	$SETSTRIPE -c 1 -i 0 $DIR/$tdir
sanityn.sh:	$SETSTRIPE -c -1 $DIR1/$tfile-1/file1 &
sanityn.sh:	$SETSTRIPE -c -1 $DIR2/$tfile-2/file2 &
sanity-quota.sh:	$SETSTRIPE $TESTFILE -c 1 || error "setstripe $TESTFILE failed"
sanity-quota.sh:	$SETSTRIPE $TESTFILE -c 1 || error "setstripe $TESTFILE failed"
sanity-quota.sh:	$SETSTRIPE $TESTFILE -c 1 || error "setstripe $TESTFILE failed"
sanity-quota.sh:	$SETSTRIPE $TESTFILE -c 1 -i 0
sanity-quota.sh:	$SETSTRIPE $TESTFILE -c 1 -i 0
sanity-quota.sh:	$SETSTRIPE $TESTFILE -c 1 -i 0 || error "setstripe $TESTFILE failed"
sanity-quota.sh:	$SETSTRIPE $TESTFILE2 -c 1 -i 0 || error "setstripe $TESTFILE2 failed"
sanity-quota.sh:	$SETSTRIPE $TESTFILE -c 1 -i 0 || error "setstripe $TESTFILE failed"
sanity-quota.sh:	$SETSTRIPE $TESTFILE -c 1 -i 0 || error "setstripe $TESTFILE failed"
sanity-quota.sh:	$SETSTRIPE $TESTFILE -c 1 -i 0 || error "setstripe $TESTFILE failed"
sanity-quota.sh:	$SETSTRIPE $TESTFILE -c 1 || error "setstripe $TESTFILE failed"
sanity-quota.sh:	$SETSTRIPE $TESTFILE0 -c 1 -i 0 || error "setstripe $TESTFILE0 failed"
sanity-quota.sh:	$SETSTRIPE $TESTFILE1 -c 1 -i 1 || error "setstripe $TESTFILE1 failed"
sanity-quota.sh:	$SETSTRIPE $TESTFILE -c 1 -i 0 || error "setstripe $TESTFILE failed"
sanity-quota.sh:	$SETSTRIPE $TESTFILE -i 0 -c 1 || error "setstripe $TESTFILE failed"
sanity-quota.sh:	$SETSTRIPE -c 1 $TESTFILE || error "setstripe $TESTFILE failed"
sanity-quota.sh:	$SETSTRIPE $TESTFILE -c 1 -i 0 || error "setstripe $TESTFILE failed"
sanity-quota.sh:	$SETSTRIPE -c 1 $TESTFILE || error "setstripe $TESTFILE failed"
sanity-quota.sh:	$SETSTRIPE $TESTFILE -i 0 -c 1 || error "setstripe $TESTFILE failed"
sanity-quota.sh:	$SETSTRIPE -c 1 -i 0 $DIR/$tdir/$tfile ||
sanity-scrub.sh:	$SETSTRIPE -c 1 -i 0 $DIR/$tdir
sanity-scrub.sh:	$SETSTRIPE -c 1 -i 0 $DIR/$tdir
sanity-scrub.sh:	$SETSTRIPE -c 1 -i 0 $DIR/$tdir
sanity.sh:		error "$SETSTRIPE $DIR/$tdir/$tfile failed"
sanity.sh:	$SETSTRIPE -i $OSTIDX -c 1 $DIR/$tdir/${OST}
sanity.sh:        $SETSTRIPE -c 0 -i -1 -S 0 $MOUNT
sanity.sh:        $SETSTRIPE -c $restore_count -i $restore_offset -S $restore_size $MOUNT
sanity.sh:		$SETSTRIPE -i $i -c -1 $tfile$i
sanity.sh:	$SETSTRIPE -c 2 $DIR/$tdir
sanity.sh:	$SETSTRIPE -S 1048576 -c 1 $DIR/d31f
sanity.sh:	$SETSTRIPE -S 1048576 -c 1 $DIR/d31f
sanity.sh:	$SETSTRIPE -c 1 $TDIR
sanity.sh:	$SETSTRIPE -c 1 -i 0 $DIR/$tfile
sanity.sh:#        $SETSTRIPE -d $DIR
sanity.sh:		[ "$MKDIR_PARAMS" ] && $SETSTRIPE $MKDIR_PARAMS $TDIR
sanity.sh:        $SETSTRIPE -d $DIR
sanity.sh:        $SETSTRIPE -d $DIR
sanity.sh:		$SETSTRIPE -c $((OSTCOUNT + 1)) $TDIR/dir$i/$tfile
sanity.sh:		$SETSTRIPE -c 1 $TDIR/$tfile.{0,1,2,3}
sanity.sh:		$SETSTRIPE -S 4M $TDIR/dir$i/$tfile
sanity.sh:	$SETSTRIPE -S 256k $TDIR/$tfile.{0,1,2,3}
sanity.sh:		$SETSTRIPE -i 1 $TDIR/$tfile.{0,1,2,3}
sanity.sh:	$SETSTRIPE -S $((STRIPESIZE * 2)) -i 0 -c 1 $DIR/$tdir ||
sanity.sh:	$SETSTRIPE -S $STRIPESIZE -c $sc $DIR/$tdir || error "setstripe"
sanity.sh:	$SETSTRIPE $DIR/$tdir || error "setstripe"
sanity.sh:	$RUNAS $SETSTRIPE $DIR/${tdir}f && error "setstripe succeeded" || true
sanity.sh:        $SETSTRIPE -S 65536 -c -1 $MOUNT
sanity.sh:	$SETSTRIPE -d $MOUNT || error "setstripe failed"
sanity.sh:		$SETSTRIPE -i $ostnum -c 1 $DIR/$tdir
sanity.sh:			echo "$SETSTRIPE -i $idx -c 1 $DIR/$tdir/$idx"
sanity.sh:			$SETSTRIPE -i $idx -c 1 $DIR/$tdir/$idx ||
sanity.sh:	$SETSTRIPE -c -1 $DIR/$tdir/test_dir
sanity.sh:	$RUNAS $SETSTRIPE -c 2 $MOUNT && error "setstripe should fail"
sanity.sh:	$SETSTRIPE -c 1 -i 0 $f
sanity.sh:	$SETSTRIPE -c 1 -i 0 $DIR/$tfile
sanity.sh:	$SETSTRIPE -c $OSTCOUNT $DIR/$tfile || error "setstripe failed"
sanity.sh:        $SETSTRIPE -i 0 -c 1 $DIR/$tfile
sanity.sh:        $SETSTRIPE -i 0 -c 1 $DIR/$tfile
sanity.sh:	$SETSTRIPE -S $STRIPE_SIZE -i $STRIPE_OFFSET -c $OSTCOUNT $DIR/$tfile
sanity.sh:	$SETSTRIPE -c -1 $file || error "setstripe failed"
sanity.sh:	$1 $SETSTRIPE -S $STRIPE_SIZE -i $STRIPE_OFFSET -c $STRIPE_COUNT $tdir
sanity.sh:				$1 $SETSTRIPE -S $size -i $idx -c $count $file
sanity.sh:	$SETSTRIPE -S 65536 -i 1 -c $OSTCOUNT $testfile ||
sanity.sh:	$RUNAS $SETSTRIPE -S 65536 -i 1 -c $OSTCOUNT $testfile ||
sanity.sh:	$SETSTRIPE -S 65536 -i 0 -c $OSTCOUNT $test_kdir ||
sanity.sh:		$SETSTRIPE -i $MINI -c 1 $DIR/$tdir/OST${MINI} ||
sanity.sh:	$SETSTRIPE -c 1 $DIR/$tdir
sanity.sh:	$SETSTRIPE -c -1 $FILE
sanity.sh:        $SETSTRIPE -c 2 $DIR/$tfile || error "setstripe failed"
sanity.sh:        $SETSTRIPE $DIR/$tfile -i 0 -c 1 || error "setstripe failed"
sanity.sh:        $SETSTRIPE -i 0 -c 1 $DIR/$tfile || error "setstripe failed"
sanity.sh:	$SETSTRIPE -S 65536 -c 1 $fm_file || error "setstripe on $fm_file"
sanity.sh:	$SETSTRIPE -S 65536 -c $OSTCOUNT $fm_file ||
sanity.sh:	$SETSTRIPE -S 65536 -c 2 $fm_file || error "setstripe on $fm_file"
sanity.sh:	$SETSTRIPE -S 65536 -c $OSTCOUNT $fm_file ||
sanity.sh:	$SETSTRIPE -S 131072 -c 2 $fm_file || error "setstripe on $fm_file"
sanity.sh:	$SETSTRIPE -c 1 -i 0 $testdir/$tfile
sanity.sh:	$SETSTRIPE -c 1 -i 0 ${testdir}/${tfile}
sanity.sh:		$SETSTRIPE -c 1 -i $i $dir || error "$SETSTRIPE $file failed"
sanity.sh:    $SETSTRIPE $file -c 1 -i $MAXI || error "$SETSTRIPE $file failed"
sanity.sh:	$SETSTRIPE -c1 $file1
sanity.sh:	$SETSTRIPE -c2 $file2
sanity.sh:	$SETSTRIPE -c1 $file1
sanity.sh:	$SETSTRIPE -c2 $file2
sanity.sh:	$SETSTRIPE -c1 $file3
sanity.sh:	$SETSTRIPE --stripe-count 0 --stripe-size 0 --stripe-index -1 $DIR/$tdir
sanity.sh:	$SETSTRIPE --stripe-count 1 $DIR/$tdir
sanity.sh:	$SETSTRIPE --stripe-size 65536 $DIR/$tdir
sanity.sh:	$SETSTRIPE --stripe-index 0 $DIR/$tdir
sanity.sh:	$SETSTRIPE -d $DIR/$tdir
sanity.sh:	$SETSTRIPE --stripe-count 1 $DIR/$tdir
sanity.sh:	$SETSTRIPE --stripe-size 65536 $DIR/$tdir
sanity.sh:	$SETSTRIPE --stripe-index 0 $DIR/$tdir
sanity.sh:	cmd="$SETSTRIPE -i 0 -c 1 $DIR/$tfile"
sanity.sh:	$SETSTRIPE -c -1 $DIR/$tdir
sanity.sh:	$SETSTRIPE $DIR/$tdir -i $OSTIDX -c 1 -p $FSNAME.$TESTNAME
sanity.sh:	$SETSTRIPE -c 2 $migrate_dir/dir_default_stripe2
sanity.sh:	$SETSTRIPE -c 2 $migrate_dir/${tfile}_stripe2
sanity.sh:	$SETSTRIPE -c 1 $file1 || error "cannot setstripe on '$file1': rc = $?"
sanity.sh:	$SETSTRIPE -c 2 $file2 || error "cannot setstripe on '$file2': rc = $?"
sanity.sh:	$SETSTRIPE -c 1 $DIR/$tfile
sanity.sh:	$SETSTRIPE -c 1 $DIR/$tfile
sanity.sh:	$SETSTRIPE -c -1 -S 1048576 $DIR/$tfile
sanity.sh:	$SETSTRIPE $DIR/$tdir -i $ostidx -c 1 -p $FSNAME.$TESTNAME ||
sanity.sh:	$SETSTRIPE -i 0 $DIR/$tdir
sanity.sh:	$SETSTRIPE -c 2 $DIR/$tdir
sanity.sh:	$SETSTRIPE -i 0 -c 1 $DIR/$tdir
sanity.sh:	$SETSTRIPE -i 0 $DIR/$tdir/$tfile || error "setstripe failed"
sanity.sh:	$SETSTRIPE -c 1 -i 0 $file || error "setstripe failed"
sanity.sh:	$SETSTRIPE -c 2 -i 0 $DIR/$tfile || error "setstripe failed"
sanity.sh:	$SETSTRIPE -c 1 -i 0 $DIR/$tfile
sanity.sh:	$SETSTRIPE -c 1 -i 1 -S $((def_stripe_size * 2)) -p $test_pool $MOUNT ||
sanity.sh:	$SETSTRIPE -c $OSTCOUNT $DIR/$tdir || error "setstripe $tdir failed"
sanity.sh:	$SETSTRIPE -c 1 -S $def_stripe_size -i 0 $MOUNT ||
sanity.sh:	$SETSTRIPE -c 0 $DIR/$tdir || error "delete $tdir default stripe failed"
sanity.sh:		$SETSTRIPE -c $def_stripe_count -S $def_stripe_size \
sanity.sh:		$SETSTRIPE -c $def_stripe_count -S $def_stripe_size \
test-framework.sh:	SETSTRIPE=${SETSTRIPE:-"$LFS setstripe"}
test-framework.sh:	$SETSTRIPE -c 2 -p $pool $tdir && return 0
test-framework.sh:		$SETSTRIPE -p $pool $file
test-framework.sh:	$SETSTRIPE -p $pool $file ||
test-framework.sh:	$SETSTRIPE -p $pool $tfile-2 || {
test-framework.sh:	$SETSTRIPE -p $pool $file 2>/dev/null && {
test-framework.sh:	$SETSTRIPE -p $pool $file 2>/dev/null && {

# 
# # grep GETSTRIPE *.sh
conf-sanity.sh:	$GETSTRIPE $MOUNT2/hosts || error "$GETSTRIPE $MOUNT2/hosts failed"
conf-sanity.sh:	$GETSTRIPE $MOUNT2 || error "$GETSTRIPE $MOUNT2 failed"
conf-sanity.sh:	$GETSTRIPE $MOUNT2/widestripe ||
conf-sanity.sh:		error "$GETSTRIPE $MOUNT2/widestripe failed"
conf-sanity.sh:	$GETSTRIPE $MOUNT || error "$GETSTRIPE $MOUNT failed"
conf-sanity.sh:	$GETSTRIPE $MOUNT/widestripe ||
conf-sanity.sh:		error "$GETSTRIPE $MOUNT/widestripe failed"
conf-sanity.sh:	local idx=$($GETSTRIPE -i $DIR/$tdir/$tfile-last)
conf-sanity.sh:	cmd="$GETSTRIPE $file"
conf-sanity.sh:	i=$($GETSTRIPE -I3 -c $file) || error "get 3rd stripe count failed"
recovery-small.sh:	local diridx=$($GETSTRIPE -M $remote_dir)
recovery-small.sh:	diridx=$($GETSTRIPE -M $remote_dir)
recovery-small.sh:	diridx=$($GETSTRIPE -M $remote_dir)
replay-ost-single.sh:$GETSTRIPE $TDIR
replay-ost-single.sh:	$GETSTRIPE $f || error "$GETSTRIPE $f failed"
replay-single.sh:	$GETSTRIPE $DIR/$tfile || error "$GETSTRIPE $DIR/$tfile failed"
replay-single.sh:	diridx=$($GETSTRIPE -M $remote_dir) ||
replay-single.sh:		error "$GETSTRIPE -M $remote_dir failed"
replay-single.sh:	fileidx=$($GETSTRIPE -M $remote_dir/f-1) ||
replay-single.sh:		error "$GETSTRIPE -M $remote_dir/f-1 failed"
replay-single.sh:		$GETSTRIPE $dir/$file
replay-single.sh:    echo "Check getstripe: $GETSTRIPE -r --obd $obd"
replay-single.sh:    list=$($GETSTRIPE -r --obd $obd $dir)
sanity-hsm.sh:	local PTRN=$($GETSTRIPE -L $f)
sanityn.sh:	[ "$(facet_fstype ost$(($($GETSTRIPE -i $DIR1/$tfile) + 1)))" = \
sanityn.sh:	[ "$(facet_fstype ost$(($($GETSTRIPE -i $DIR1/$tdir/$tfile) + 1)))" = \
sanityn.sh:	$GETSTRIPE $DIR1/$tfile-1/file1
sanityn.sh:	rc1=$($GETSTRIPE -q $DIR1/$tfile-1/file1 |
sanityn.sh:	$GETSTRIPE $DIR2/$tfile-2/file2
sanityn.sh:	rc2=$($GETSTRIPE -q $DIR2/$tfile-2/file2 |
sanity.sh:        lmm_count=$($GETSTRIPE -c $1)
sanity.sh:        lmm_seq=$($GETSTRIPE -v $1 | awk '/lmm_seq/ { print $2 }')
sanity.sh:        lmm_oid=$($GETSTRIPE -v $1 | awk '/lmm_object_id/ { print $2 }')
sanity.sh:        $GETSTRIPE $1 | while read obdidx oid hex seq; do
sanity.sh:        local restore_size=$($GETSTRIPE -S $MOUNT)
sanity.sh:        local restore_count=$($GETSTRIPE -c $MOUNT)
sanity.sh:        local restore_offset=$($GETSTRIPE -i $MOUNT)
sanity.sh:        wait_update $HOSTNAME "$GETSTRIPE -c $MOUNT | sed 's/  *//g'" "1" 20 ||
sanity.sh:                error "stripe count $($GETSTRIPE -c $MOUNT) != 1"
sanity.sh:        local default_size=$($GETSTRIPE -S $MOUNT)
sanity.sh:        local default_offset=$($GETSTRIPE -i $MOUNT)
sanity.sh:		ost_idx=($($GETSTRIPE $tfile$i |
sanity.sh:	[[ $($GETSTRIPE -c $DIR/$tdir/f0) == 2 ]] || error "wrong stripecount"
sanity.sh:	$GETSTRIPE $DIR/d31f/hosts
sanity.sh:	$GETSTRIPE $DIR/d31f/hosts
sanity.sh:	$GETSTRIPE $DIR/f34 2>&1 | grep -q "no stripe info" || error
sanity.sh:	$GETSTRIPE $DIR/f34 2>&1 | grep -q "no stripe info" || error
sanity.sh:	$GETSTRIPE $DIR/f34 2>&1 | grep -q "no stripe info" || error
sanity.sh:	$GETSTRIPE $DIR/f34 2>&1 | grep -q "no stripe info" && error
sanity.sh:		idx=$($GETSTRIPE -i $TDIR/w$i)
sanity.sh:		idx=$($GETSTRIPE -i $TDIR/w$i)
sanity.sh:		[ $($GETSTRIPE -i $TDIR/f$i) -eq 0 ] || continue
sanity.sh:	FILENUM=$($GETSTRIPE --recursive $DIR/$tdir | grep -c obdidx)
sanity.sh:		error "$GETSTRIPE --recursive: found $FILENUM, not $NUMFILESx2"
sanity.sh:	FILENUM=$($GETSTRIPE $DIR/$tdir | grep -c obdidx)
sanity.sh:		error "$GETSTRIPE $DIR/$tdir: found $FILENUM, not $NUMFILES"
sanity.sh:	echo "$GETSTRIPE --recursive passed."
sanity.sh:	FILENUM=$($GETSTRIPE $DIR/$tdir/file1 | grep -c obdidx)
sanity.sh:		error "$GETSTRIPE $DIR/$tdir/file1: found $FILENUM, not 1"
sanity.sh:	echo "$GETSTRIPE file1 passed."
sanity.sh:	[[ $($GETSTRIPE --verbose $DIR/$tdir |
sanity.sh:		error "$GETSTRIPE --verbose $DIR/$tdir: want $NUMFILES"
sanity.sh:	[[ $($GETSTRIPE $DIR/$tdir | grep -c lmm_magic) -eq 0 ]] ||
sanity.sh:		error "$GETSTRIPE $DIR/$tdir: showed lmm_magic"
sanity.sh:	[[ $($GETSTRIPE -v $DIR/$tdir | grep -c lmm_fid) -eq $NUMFILES ]] ||
sanity.sh:		error "$GETSTRIPE -v $DIR/$tdir: want $NUMFILES lmm_fid: lines"
sanity.sh:	[[ $($GETSTRIPE $DIR/$tdir | grep -c lmm_fid) -eq 0 ]] ||
sanity.sh:		error "$GETSTRIPE $DIR/$tdir: showed lmm_fid"
sanity.sh:	echo "$GETSTRIPE --verbose passed."
sanity.sh:	local fid1=$($GETSTRIPE --fid $DIR/$tdir/file1)
sanity.sh:	local fid2=$($GETSTRIPE --verbose $DIR/$tdir/file1 |
sanity.sh:	echo "$GETSTRIPE --fid passed."
sanity.sh:	$GETSTRIPE --obd wrong_uuid $DIR/$tdir 2>&1 |
sanity.sh:		error "$GETSTRIPE --obd wrong_uuid should return error message"
sanity.sh:		skip_env "skipping other $GETSTRIPE --obd test" && return
sanity.sh:	FILENUM=$($GETSTRIPE -ir $DIR/$tdir | grep "^$OSTIDX\$" | wc -l)
sanity.sh:	FOUND=$($GETSTRIPE -r --obd $OBDUUID $DIR/$tdir | grep obdidx | wc -l)
sanity.sh:		error "$GETSTRIPE --obd wrong: found $FOUND, expected $FILENUM"
sanity.sh:	[[ $($GETSTRIPE -r -v --obd $OBDUUID $DIR/$tdir |
sanity.sh:		error "$GETSTRIPE --obd: should not show file on other obd"
sanity.sh:	echo "$GETSTRIPE --obd passed"
sanity.sh:run_test 56a "check $GETSTRIPE"
sanity.sh:		$GETSTRIPE -R $TDIR
sanity.sh:		$GETSTRIPE -R $TDIR
sanity.sh:		$GETSTRIPE -R $TDIR
sanity.sh:		$GETSTRIPE -R $TDIR
sanity.sh:		$GETSTRIPE -R $TDIR
sanity.sh:		$GETSTRIPE -R $TDIR
sanity.sh:		$GETSTRIPE -R $TDIR
sanity.sh:        file_mdt_idx=$($GETSTRIPE -M $file)
sanity.sh:	stripe_size=$($GETSTRIPE -S -d $TDIR) ||
sanity.sh:		error "$GETSTRIPE -S -d $TDIR failed"
sanity.sh:	$GETSTRIPE $FILE1 2>&1 | grep -q "no stripe" || error "$FILE1 has an EA"
sanity.sh:	$GETSTRIPE $FILEN 2>&1 | grep -q "no stripe" || error "$FILEN has an EA"
sanity.sh:	$GETSTRIPE $FILE1 | grep -q "obdidx" || error "$FILE1 missing EA"
sanity.sh:	$GETSTRIPE $FILEN | grep -q "obdidx" || error "$FILEN missing EA"
sanity.sh:	local STRIPESIZE=$($GETSTRIPE -S $DIR/$tdir)
sanity.sh:	local stripesize=$($GETSTRIPE -S $DIR/$tdir)
sanity.sh:	local STRIPECOUNT=$($GETSTRIPE -c $DIR/$tdir)
sanity.sh:	local STRIPESIZE=$($GETSTRIPE -S $DIR/$tdir)
sanity.sh:        $GETSTRIPE -v $DIR/$tdir | grep "Default" ||
sanity.sh:	local STRIPESIZE=$($GETSTRIPE -S $DIR/$tdir)
sanity.sh:	local STRIPESIZE=$($GETSTRIPE -S $DIR/$tdir)
sanity.sh:	[ $($LFS getstripe -c $DIR/$tdir) = $($GETSTRIPE -c $DIR/$tdir/dd1) ] ||
sanity.sh:	$GETSTRIPE $MOUNT || error "getstripe $MOUNT failed"
sanity.sh:	$GETSTRIPE -v $MOUNT || error "getstripe -v $MOUNT failed"
sanity.sh:	local STRIPECOUNT=$($GETSTRIPE -c $testfile) ||
sanity.sh:	local stripe_size=$($GETSTRIPE -S $testfile2)
sanity.sh:	local stripe_count=$($GETSTRIPE -c $testfile2)
sanity.sh:	local STRIPECOUNT=$($RUNAS $GETSTRIPE -c $testfile) ||
sanity.sh:	local stripe_size=$($RUNAS $GETSTRIPE -S $testfile2)
sanity.sh:	local stripe_count=$($RUNAS $GETSTRIPE -c $testfile2)
sanity.sh:	MINC=$($GETSTRIPE --ost $UUID $DIR/$tdir | grep $DIR | wc -l)
sanity.sh:	MAXC=$($GETSTRIPE --ost $UUID $DIR/$tdir | grep $DIR | wc -l)
sanity.sh:	[ "$(facet_fstype ost$(($($GETSTRIPE -i $fm_file) + 1)))" = "zfs" ] &&
sanity.sh:	lun=$($GETSTRIPE -i $fm_file)
sanity.sh:	[ "$(facet_fstype ost$(($($GETSTRIPE -i $fm_file) + 1)))" = "zfs" ] &&
sanity.sh:	[ "$(facet_fstype ost$(($($GETSTRIPE -i $fm_file) + 1)))" = "zfs" ] &&
sanity.sh:	[ "$(facet_fstype ost$(($($GETSTRIPE -i $fm_file) + 1)))" = "zfs" ] &&
sanity.sh:	local actual_stripe_count=$($GETSTRIPE -c $fm_file)
sanity.sh:	[ "$(facet_fstype ost$(($($GETSTRIPE -i $fm_file) + 1)))" = "zfs" ] &&
sanity.sh:	gen1=$($GETSTRIPE -g $file1)
sanity.sh:	gen2=$($GETSTRIPE -g $file2)
sanity.sh:	gen=$($GETSTRIPE -g $file1)
sanity.sh:	gen=$($GETSTRIPE -g $file2)
sanity.sh:	gen1=$($GETSTRIPE -g $file1)
sanity.sh:	gen2=$($GETSTRIPE -g $file2)
sanity.sh:	ACTUAL=$($GETSTRIPE $* $DIR/$tdir)
sanity.sh:	$GETSTRIPE -v $DIR/$tfile
sanity.sh:	local pattern=$($GETSTRIPE -L $DIR/$tfile)
sanity.sh:	local stripe_count=$($GETSTRIPE -c $DIR/$tfile) || error "getstripe"
sanity.sh:	local mdt_idx=$($GETSTRIPE -M $DIR/$tdir/test_230_local)
sanity.sh:	local mdt_idx=$($GETSTRIPE -M $DIR/$tdir/test_230)
sanity.sh:	mdt_idx=$($GETSTRIPE -M $DIR/$tdir/test_230/t-0)
sanity.sh:	[ "$(facet_fstype ost$(($($GETSTRIPE -i $DIR/$tfile) + 1)))" = "zfs" ] \
sanity.sh:	local mdtidx=$($GETSTRIPE -M $dom)
sanity.sh:	[ $($GETSTRIPE -L $DIR/$tdir/first) == "mdt" ] ||
sanity.sh:		stripe_count=$($GETSTRIPE -c $file)
sanity.sh:	local index=$($GETSTRIPE -i $DIR/$tdir/$tfile)
sanity.sh:	local def_stripe_count=$($GETSTRIPE -c $MOUNT)
sanity.sh:	local def_stripe_size=$($GETSTRIPE -S $MOUNT)
sanity.sh:	local def_stripe_offset=$($GETSTRIPE -i $MOUNT)
sanity.sh:	local def_pool=$($GETSTRIPE -p $MOUNT)
sanity.sh:		local count=$($GETSTRIPE -c $f)
sanity.sh:		local offset=$($GETSTRIPE -i $f)
sanity.sh:		local size=$($GETSTRIPE -S $f)
sanity.sh:		local pool=$($GETSTRIPE -p $f)
sanity.sh:		local count=$($GETSTRIPE -c $f)
sanity.sh:		local offset=$($GETSTRIPE -i $f)
sanity.sh:		local size=$($GETSTRIPE -S $f)
sanity.sh:		local pool=$($GETSTRIPE -p $f)
test-framework.sh:	GETSTRIPE=${GETSTRIPE:-"$LFS getstripe"}
test-framework.sh:	local res=$($GETSTRIPE $file | grep 0x | cut -f2)
test-framework.sh:	local res=$($GETSTRIPE --pool $tdir | sed "s/\s*$//")
test-framework.sh:	local cmd="$GETSTRIPE -c $file"
test-framework.sh:	obdidx=$(comma_list $($GETSTRIPE $file | grep -A $OSTCOUNT obdidx |
test-framework.sh:	start_ost_idx=$($GETSTRIPE $file | grep -A 1 obdidx | grep -v obdidx |



 Comments   
Comment by Gerrit Updater [ 11/Jul/18 ]

James Nunez (jnunez@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/32809
Subject: LU-10447 tests: depricate $SETSTRIPE and $GETSTRIPE
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 03c75d3e6930a4135365169ded964477e3d132e5

Comment by Gerrit Updater [ 24/Jul/18 ]

Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/32865
Subject: LU-10447 build: fix checkpatch.pl to not mangle case
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 2be867f40668b44dfce45ad372083d9d6af2a816

Comment by Gerrit Updater [ 10/Sep/18 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32865/
Subject: LU-10447 build: fix checkpatch.pl to not mangle case
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: deb5aba28c1614ce646964da7b00a8b8b7355733

Comment by Gerrit Updater [ 26/Dec/18 ]

James Nunez (jnunez@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33917
Subject: LU-10447 tests: replace $SETSTRIPE/$GETSTRIPE with $LFS
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 32ef797be3d138cb52f79db16459ed1032f1f49d

Comment by Gerrit Updater [ 27/Dec/18 ]

James Nunez (jnunez@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33918
Subject: LU-10447 tests: replace $SET/$GETSTRIPE for recovery tests
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 2e2c404a425f5952cbc97b71b778fe94e8eb5fda

Comment by Gerrit Updater [ 27/Dec/18 ]

James Nunez (jnunez@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33919
Subject: LU-10447 tests: replace $SET/$GETSTRIPE for misc tests
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: f451d889713caea970ad28a2fb0550365151277b

Comment by Gerrit Updater [ 27/Dec/18 ]

James Nunez (jnunez@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33925
Subject: LU-10447 tests: deprecate use of $SETSTRIPE/$GETSTRIPE
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 08b7aae0ae4f92372b4c2522ce80b99434aa98db

Comment by James Nunez (Inactive) [ 27/Dec/18 ]

The original patch for this ticket modified all scripts that used $SETSTRIPE and $GETSTRIPE and removed their definitions. Although this worked, the patch was large and more difficult to review than necessary. Thus, I broke up the original patch into five patches:
https://review.whamcloud.com/#/c/32809/ - modify sanity and sanityn
https://review.whamcloud.com/#/c/33917/ - modify conf-sanity, ost-pools, sanity-quota
https://review.whamcloud.com/#/c/33918/ - modify replay-dual, replay-ost-single, replay-single
https://review.whamcloud.com/#/c/33919/ - modify recovery-small, sanity-hsm, sanity-lfsck, sanity-scrub
https://review.whamcloud.com/#/c/33925/ - modify test-framework and remove definitions

The last patch will fail until all others have landed.

Comment by Gerrit Updater [ 16/Jan/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32809/
Subject: LU-10447 tests: deprecate $SETSTRIPE/$GETSTRIPE in sanity
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: c26d0e04845a2040c353abba2355725cb461a3e8

Comment by Gerrit Updater [ 23/Jan/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33918/
Subject: LU-10447 tests: replace $SET/$GETSTRIPE in replay tests
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 8d2c98744c1234c9720ff5accbf986449e024dbc

Comment by Gerrit Updater [ 06/Feb/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33917/
Subject: LU-10447 tests: replace $SETSTRIPE/$GETSTRIPE with $LFS
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: f42aa59c77b4a9a24d4454f33969c62cb0a0ba4c

Comment by Gerrit Updater [ 12/Nov/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33919/
Subject: LU-10447 tests: replace $SET/$GETSTRIPE for misc tests
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 332ec6a585f54eb7b3694ff6f939cd6d8159e6ba

Comment by James Nunez (Inactive) [ 15/Nov/19 ]

We have one more patch that needs to land before we can close this ticket. Patch that needs to land is https://review.whamcloud.com/#/c/33925/ .

Comment by Gerrit Updater [ 08/Feb/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33925/
Subject: LU-10447 tests: deprecate use of $SETSTRIPE/$GETSTRIPE
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: be3b7e772d3aadfee9200565ebf88528272c1d6d

Comment by Jian Yu [ 10/Feb/20 ]

sanity test 136 failed on master branch:

== sanity test 136: Race catalog processing 2 ======================================================== 13:35:38 (1581168938)
/usr/lib64/lustre/tests/sanity.sh: line 12665: -c: command not found
 sanity test_136: @@@@@@ FAIL: failed to set striping 

https://testing.whamcloud.com/test_sets/275eda52-4bc0-11ea-a1c8-52540065bddc

Comment by Gerrit Updater [ 09/Mar/20 ]

Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37831
Subject: LU-10447 tests: remove use of SETSTRIPE from sanity
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 3582c61260f5ef3c5477549955836b8e6905d3c6

Comment by Gerrit Updater [ 10/Mar/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37831/
Subject: LU-10447 tests: remove use of SETSTRIPE from sanity
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: fd77bcb47ca9b5fea56e0ade43b95faf2622d6d2

Comment by James Nunez (Inactive) [ 11/Mar/20 ]

All uses of $SETSTRIPE and $GETSTRIPE were replaced with $LFS get/setstripe with master branch build $4017. Thus we can close this ticket.

Comment by Gerrit Updater [ 18/Jan/22 ]

"Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/46166
Subject: LU-10447 tests: remove use of SETSTRIPE from sanity
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: 972526c55b7bf9f3101ae1a1a67e0fa79b40e349

Generated at Sat Feb 10 02:35:10 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.