mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
+10
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user