[debian-edu-commits] debian-edu/ 01/02: Add check if the filesystems on the mountpoints support acls in filesystems testsuite.

Jürgen Leibner jever-guest at moszumanska.debian.org
Sun Sep 14 19:46:33 UTC 2014


This is an automated email from the git hooks/post-receive script.

jever-guest pushed a commit to branch master
in repository debian-edu-config.

commit 38b3037cbff872fc2b2383ff7b76ac5f580c351f
Author: Jürgen Leibner <juergen at leibner.eu>
Date:   Sun Sep 14 21:37:33 2014 +0200

    Add check if the filesystems on the mountpoints support acls in filesystems testsuite.
---
 testsuite/filesystems | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/testsuite/filesystems b/testsuite/filesystems
index 0ab6662..bd0cf7b 100755
--- a/testsuite/filesystems
+++ b/testsuite/filesystems
@@ -12,6 +12,15 @@ export LANG
 awk "/ext2/ { print \"error: $0: Using ext2 on\",\$2 }" /proc/mounts
 awk "/ext3|ext4/ { print \"success: $0: Using ext3 on\",\$2 }" /proc/mounts
 
+# Check if the filesystems on the mountpoints support acls
+for f in `grep 'ext' /proc/mounts|awk '{print $1}'`; do
+     if [ `chacl -l $f | grep 'cannot get'` ]; then
+        echo "error: $0: $f doesn't support acls" 
+     else
+        echo "success: $0: $f supports acls"
+     fi
+done
+
 # Make sure all ext3 mount points are online resizable
 for p in `(df -Pt ext3 2>/dev/null;df -Pt ext4 2>/dev/null) | grep -v ^Filesystem |awk '{print $1}'`; do 
     if tune2fs -l $p| grep features | grep -q resize_inode ; then

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git



More information about the debian-edu-commits mailing list