[debian-edu-commits] debian-edu/ 01/02: Add new testsuite check to check if /skole/tjener/home0 /skole/backup file systems have the acl and user_xattr options enabled, to see if bug #638822 is present or not.

Petter Reinholdtsen pere at moszumanska.debian.org
Sun Sep 14 14:54:40 UTC 2014


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

pere pushed a commit to tag 1.800
in repository debian-edu-config.

commit 3625d1ae14902d8f17945e2786a720c23b2bddad
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Sun Sep 14 16:51:42 2014 +0200

    Add new testsuite check to check if /skole/tjener/home0 /skole/backup file systems have the acl and user_xattr options enabled, to see if bug #638822 is present or not.
---
 debian/changelog      |  3 +++
 testsuite/filesystems | 17 ++++++++++++++++-
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index c68646e..73f8643 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,9 @@ debian-edu-config (1.800) UNRELEASED; urgency=low
   * Fix a few typos in comments in
     ltsp-build-client/Debian-custom/032-edu-pkgs.
   * Fix typo in debian-edu-ltsp script, breaking when --arch is used.
+  * Add new testsuite check to check if /skole/tjener/home0
+    /skole/backup file systems have the acl and user_xattr options
+    enabled, to see if bug #638822 is present or not.
 
   [ Wolfgang Schweer ]
   * Replace wheezy with jessie in cf/cf.apt.
diff --git a/testsuite/filesystems b/testsuite/filesystems
index 0ab6662..88ac791 100755
--- a/testsuite/filesystems
+++ b/testsuite/filesystems
@@ -12,7 +12,7 @@ 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
 
-# Make sure all ext3 mount points are online resizable
+# Make sure all ext3/ext4 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
 	:
@@ -21,6 +21,21 @@ for p in `(df -Pt ext3 2>/dev/null;df -Pt ext4 2>/dev/null) | grep -v ^Filesyste
     fi
 done
 
+# Make sure home0 and backup have acl and user_xattr enabled
+# See bug #638822 is present or not.
+for dir in /skole/tjener/home0 /skole/backup; do
+    dev="$(LC_ALL=C df -P /var/log|awk '/%/ {print $1}')"
+    for opt in acl user_xattr ; do
+	if LC_ALL=C tune2fs -l "$dev" | \
+	    grep 'Default mount' | \
+	    grep -qw $opt ; then
+	    echo "success: $0: Found option $opt in $dir."
+	else
+	    echo "error: $0: Did not find option $opt in $dir."
+	fi
+    done
+done
+
 # Make sure autofs do not hide the real file systems
 if echo "$PROFILE" | grep -q Main-Server ; then
     if [ -d /skole/tjener/home0/lost+found ] ; 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