Whamcloud - gitweb
LU-3432 llite: Access to released file trigs a restore
[fs/lustre-release.git] / lustre / tests / sanity.sh
index a679db8..20c2d04 100644 (file)
@@ -11176,7 +11176,6 @@ test_229() { # LU-2482, LU-3448
        [ $stripe_count -eq 2 ] || error "stripe count not 2 ($stripe_count)"
        stat $DIR/$tfile || error "failed to stat released file"
 
        [ $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"
 
        $TRUNCATE $DIR/$tfile 200000 &&
                error "truncate of released file should fail"
 
@@ -11188,9 +11187,18 @@ test_229() { # LU-2482, LU-3448
        stripe_count=$($GETSTRIPE -c $DIR/$tfile) || error "getstripe failed"
        [ $stripe_count -eq 2 ] || error "after trunc: ($stripe_count)"
 
        stripe_count=$($GETSTRIPE -c $DIR/$tfile) || error "getstripe failed"
        [ $stripe_count -eq 2 ] || error "after trunc: ($stripe_count)"
 
+       chown $RUNAS_ID $DIR/$tfile ||
+               error "chown $RUNAS_ID $DIR/$tfile failed"
+
+       chgrp $RUNAS_ID $DIR/$tfile ||
+               error "chgrp $RUNAS_ID $DIR/$tfile failed"
+
+       touch $DIR/$tfile ||
+               error "touch $DIR/$tfile failed"
+
        rm $DIR/$tfile || error "failed to remove released file"
 }
        rm $DIR/$tfile || error "failed to remove released file"
 }
-run_test 229 "getstripe/stat/rm work on released files (stripe count = 2)"
+run_test 229 "getstripe/stat/rm/attr changes work on released files"
 
 test_230a() {
        [ $PARALLEL == "yes" ] && skip "skip parallel run" && return
 
 test_230a() {
        [ $PARALLEL == "yes" ] && skip "skip parallel run" && return