Merge of xfs-cmds-2.4.18:slinx:111140a by nathans.

minor changes to xfstests as we transition to new EA/ACL interfaces.
This commit is contained in:
Nathan Scott
2002-02-25 22:12:17 +00:00
parent 04cbb967db
commit 958b881b08
14 changed files with 129 additions and 171 deletions
+10 -3
View File
@@ -1146,9 +1146,16 @@ _get_eas_on_path()
{
_path=$1
find $_path -exec attr -l {} \; |\
awk '{print $9, $2}' |\
sed 's/["]//g' |\
# Tim - this is the IRIX way...
# find $_path -exec attr -l {} \; |\
# awk '{print $9, $2}' |\
# sed 's/["]//g' |\
# sort |\
# and this is now the Linux way...
getfattr -Rla $_path |\
perl -wn -e '
if (m/^# file: (\S+)/) { $file = $1 }
elsif (m/^user\.(\w+)/) { print $file, " ",$1,"\n" }' |\
sort |\
while read file ea_name; do
attr -g $ea_name $file