+test_229() { # LU-2482, LU-3448
+ [ $PARALLEL == "yes" ] && skip "skip parallel run" && return
+ [ $OSTCOUNT -lt 2 ] && skip "needs >= 2 OSTs" && return
+
+ rm -f $DIR/$tfile
+
+ # Create a file with a released layout and stripe count 2.
+ $MULTIOP $DIR/$tfile H2c ||
+ error "failed to create file with released layout"
+
+ $GETSTRIPE -v $DIR/$tfile
+
+ local pattern=$($GETSTRIPE -v $DIR/$tfile |
+ grep lmm_stripe_pattern | awk '{print $2}')
+ [ X"$pattern" = X"80000001" ] || error "pattern error ($pattern)"
+
+ local stripe_count=$($GETSTRIPE -c $DIR/$tfile) || error "getstripe"
+ [ $stripe_count -eq 2 ] || error "stripe count not 2 ($stripe_count)"
+ stat $DIR/$tfile || error "failed to stat released file"
+
+ # Truncate should fail.
+ $TRUNCATE $DIR/$tfile 200000 &&
+ error "truncate of released file should fail"
+
+ # Ensure that nothing happened anyway.
+ $CHECKSTAT -s 0 $DIR/$tfile ||
+ error "released file size should not change"
+
+ # Stripe count should be no change after truncate
+ stripe_count=$($GETSTRIPE -c $DIR/$tfile) || error "getstripe failed"
+ [ $stripe_count -eq 2 ] || error "after trunc: ($stripe_count)"
+
+ rm $DIR/$tfile || error "failed to remove released file"
+}
+run_test 229 "getstripe/stat/rm work on released files (stripe count = 2)"
+