summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2024-05-22 19:30:48 +0200
committerZorro Lang <zlang@kernel.org>2024-05-25 13:57:33 +0800
commite46fa3a7dae4a65fd80128bf381dba4fd5036ebb (patch)
treed25b1d9633fcbc7aad7eb2bb967b2812cacf2709 /common
parent692bef09cfad168df9602349319c1b4f43192ae4 (diff)
Remove richacl supportv2024.05.26
There's no support for richacl in Linux and based on information in the links will never be. Remove all related files and support code. References: - https://wiki.samba.org/index.php/NFS4_ACL_overview#Linux - https://lwn.net/Articles/661357/ (article, 2015) - https://lwn.net/Articles/661078/ (patches, 2015) - https://github.com/andreas-gruenbacher/richacl/ - http://www.bestbits.at/richacl/ (n/a anymore) Signed-off-by: David Sterba <dsterba@suse.com> Reviewed-by: David Disseldorp <ddiss@suse.de> Reviewed-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Zorro Lang <zlang@kernel.org>
Diffstat (limited to 'common')
-rw-r--r--common/config2
-rw-r--r--common/ext49
-rw-r--r--common/rc52
3 files changed, 0 insertions, 63 deletions
diff --git a/common/config b/common/config
index 2114d936..a1cd14de 100644
--- a/common/config
+++ b/common/config
@@ -204,8 +204,6 @@ export LSATTR_PROG="$(type -P lsattr)"
export CHATTR_PROG="$(type -P chattr)"
export DEBUGFS_PROG="$(type -P debugfs)"
export UUIDGEN_PROG="$(type -P uuidgen)"
-export GETRICHACL_PROG="$(type -P getrichacl)"
-export SETRICHACL_PROG="$(type -P setrichacl)"
export KEYCTL_PROG="$(type -P keyctl)"
export XZ_PROG="$(type -P xz)"
export LZ4_PROG="$(type -P lz4)"
diff --git a/common/ext4 b/common/ext4
index 3dcbfe17..13921bb8 100644
--- a/common/ext4
+++ b/common/ext4
@@ -187,15 +187,6 @@ _ext4_disable_extent_zeroout()
echo 0 >/sys/fs/ext4/$sdev/extent_max_zeroout_kb
}
-_require_scratch_richacl_ext4()
-{
- _scratch_mkfs -O richacl >/dev/null 2>&1 \
- || _notrun "can't mkfs $FSTYP with option -O richacl"
- _try_scratch_mount >/dev/null 2>&1 \
- || _notrun "kernel doesn't support richacl feature on $FSTYP"
- _scratch_unmount
-}
-
_scratch_ext4_options()
{
local type=$1
diff --git a/common/rc b/common/rc
index 6562ccd7..163041fe 100644
--- a/common/rc
+++ b/common/rc
@@ -3096,58 +3096,6 @@ _runas()
"$here/src/runas" "$@"
}
-_require_richacl_prog()
-{
- _require_command "$GETRICHACL_PROG" getrichacl
- _require_command "$SETRICHACL_PROG" setrichacl
-}
-
-_require_scratch_richacl_xfs()
-{
- _scratch_mkfs_xfs_supported -m richacl=1 >/dev/null 2>&1 \
- || _notrun "mkfs.xfs doesn't have richacl feature"
- _scratch_mkfs_xfs -m richacl=1 >/dev/null 2>&1
- _try_scratch_mount >/dev/null 2>&1 \
- || _notrun "kernel doesn't support richacl feature on $FSTYP"
- _scratch_unmount
-}
-
-_require_scratch_richacl_support()
-{
- _scratch_mount
- $GETFATTR_PROG -n system.richacl >/dev/null 2>&1 \
- || _notrun "this test requires richacl support on \$SCRATCH_DEV"
- _scratch_unmount
-}
-
-_require_scratch_richacl()
-{
- case "$FSTYP" in
- xfs) _require_scratch_richacl_xfs
- ;;
- ext4) _require_scratch_richacl_ext4
- ;;
- nfs*|cifs|overlay)
- _require_scratch_richacl_support
- ;;
- *) _notrun "this test requires richacl support on \$SCRATCH_DEV"
- ;;
- esac
-}
-
-_scratch_mkfs_richacl()
-{
- case "$FSTYP" in
- xfs) _scratch_mkfs_xfs -m richacl=1
- ;;
- ext4) _scratch_mkfs -O richacl
- ;;
- nfs*|afs|cifs|overlay)
- _scratch_mkfs
- ;;
- esac
-}
-
# check if the given device is mounted, if so, return mount point
_is_dev_mounted()
{