Most requirement tests are named _require_foo, so just
make this more consistent.
Also remove a few redundant tests for /usr/bin/chacl
since _require_acls covers that.
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
_supported_fs xfs udf
_supported_os Linux
-[ -x /usr/bin/chacl ] || _notrun "chacl executable not found"
[ -x $runas ] || _notrun "$runas executable not found"
rm -f $seq.full
_need_to_be_root
_acl_setup_ids
-_acl_requirements
+_require_acls
# get dir
cd $testdir
_supported_os Linux
_require_scratch
-_acl_requirements
+_require_acls
_acl_setup_ids
_do_die_on_error=y
test=$SCRATCH_MNT/test
_supported_fs xfs
_supported_os Linux
-[ -x /usr/bin/chacl ] || _notrun "chacl executable not found"
-
_need_to_be_root
-_acl_requirements
+_require_acls
_require_scratch
# set up fs for 1K inodes
[ ! -d $filler ] && _notrun "No directory to source files from"
_require_scratch
-_acl_requirements
+_require_acls
echo "*** create filesystem"
_supported_os IRIX
_acl_setup_ids
-_acl_requirements
+_require_acls
+
[ -x $runas ] || _notrun "$runas executable not found"
# get dir
_require_scratch
_acl_setup_ids
-_acl_requirements
+_require_acls
umount $SCRATCH_DEV >/dev/null 2>&1
echo "*** MKFS ***" >>$seq.full
# test if acl code will work
#
-_acl_requirements()
+_require_acls()
{
xfsdir=$TEST_DIR