+test_27B() { # LU-2523
+ test_mkdir -p $DIR/$tdir
+ rm -f $DIR/$tdir/f0 $DIR/$tdir/f1
+ touch $DIR/$tdir/f0
+ # open f1 with O_LOV_DELAY_CREATE
+ # rename f0 onto f1
+ # call setstripe ioctl on open file descriptor for f1
+ # close
+ multiop $DIR/$tdir/f1 oO_RDWR:O_CREAT:O_LOV_DELAY_CREATE:nB1c \
+ $DIR/$tdir/f0
+
+ rm -f $DIR/$tdir/f1
+ # open f1 with O_LOV_DELAY_CREATE
+ # unlink f1
+ # call setstripe ioctl on open file descriptor for f1
+ # close
+ multiop $DIR/$tdir/f1 oO_RDWR:O_CREAT:O_LOV_DELAY_CREATE:uB1c
+
+ # Allow multiop to fail in imitation of NFS's busted semantics.
+ true
+}
+run_test 27B "call setstripe on open unlinked file/rename victim"
+
+test_27C() { #LU-2871
+ [ $OSTCOUNT -lt 2 ] && skip "needs >= 2 OSTs" && return
+
+ declare -a ost_idx
+ local index
+ local i
+ local j
+
+ test_mkdir -p $DIR/$tdir
+ cd $DIR/$tdir
+ for i in $(seq 0 $((OSTCOUNT - 1))); do
+ # set stripe across all OSTs starting from OST$i
+ $SETSTRIPE -i $i -c -1 $tfile$i
+ # get striping information
+ ost_idx=($($GETSTRIPE $tfile$i |
+ tail -n $((OSTCOUNT + 1)) | awk '{print $1}'))
+ echo ${ost_idx[@]}
+ # check the layout
+ for j in $(seq 0 $((OSTCOUNT - 1))); do
+ index=$(((i + j) % OSTCOUNT))
+ [ ${ost_idx[$j]} -eq $index ] || error
+ done
+ done
+}
+run_test 27C "check full striping across all OSTs"
+