]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
Set default extN mount options
authorEric Sandeen <sandeen@sandeen.net>
Thu, 28 May 2009 16:39:20 +0000 (11:39 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 28 May 2009 16:39:20 +0000 (11:39 -0500)
ext2/3/4 don't support acls & attrs w/o specific mount
options, so make those the default whenever we mount
these filesystems.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
common.rc

index 78514f4de77e916ff1c6ee9abed19c515a815351..54c36f34e59a488b269cf9cc273d00132b8beb14 100644 (file)
--- a/common.rc
+++ b/common.rc
@@ -49,6 +49,10 @@ _mount_opts()
     nfs)
        export MOUNT_OPTIONS=$NFS_MOUNT_OPTIONS
        ;;
+    ext2|ext3|ext4)
+       # acls & xattrs aren't turned on by default on ext$FOO
+       export MOUNT_OPTIONS="-o acl,user_xattr $EXT_MOUNT_OPTIONS"
+       ;;
     *)
        ;;
     esac
@@ -585,7 +589,7 @@ _require_scratch()
                     _notrun "this test requires a valid \$SCRATCH_DEV"
                 fi
                 ;;
-       nfs*|ext2|ext3|reiserfs)
+       nfs*|ext2|ext3|ext4|reiserfs)
                 echo $SCRATCH_DEV | grep -q ":" > /dev/null 2>&1
                 if [ ! -z "$SCRATCH_DEV" -a ! -b "$SCRATCH_DEV" -a "$?" != "0" ]
                 then