Whamcloud - gitweb
LU-5150 acl: 'cp -rp' set empty default ACL
[fs/lustre-release.git] / lustre / tests / sanity.sh
index d2c7a48..deec912 100644 (file)
@@ -6935,9 +6935,21 @@ test_103b() {
                         error "failed to start MDT."
         fi
 
-        rm -f $DIR/$tfile
+       true
+}
+run_test 103b "MDS mount option 'noacl'"
+
+test_103c() {
+       mkdir -p $DIR/$tdir
+       cp -rp $DIR/$tdir $DIR/$tdir.bak
+
+       [ -n "$(getfattr -d -m. $DIR/$tdir | grep posix_acl_default)" ] &&
+               error "$DIR/$tdir shouldn't contain default ACL"
+       [ -n "$(getfattr -d -m. $DIR/$tdir.bak | grep posix_acl_default)" ] &&
+               error "$DIR/$tdir.bak shouldn't contain default ACL"
+       true
 }
-run_test 103b "MDS mount option \"noacl\" ======================="
+run_test 103c "'cp -rp' won't set empty acl"
 
 test_104a() {
        [ $PARALLEL == "yes" ] && skip "skip parallel run" && return