mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs_attr is now called attr
This commit is contained in:
@@ -60,7 +60,7 @@ _filter()
|
||||
|
||||
_attr()
|
||||
{
|
||||
xfs_attr $* 2>$tmp.err >$tmp.out
|
||||
attr $* 2>$tmp.err >$tmp.out
|
||||
exit=$?
|
||||
_filter $tmp.out
|
||||
_filter $tmp.err 1>&2
|
||||
@@ -149,7 +149,7 @@ echo "*** add lots of attributes"
|
||||
v=0
|
||||
while [ $v -lt 1000 ]
|
||||
do
|
||||
echo "value_$v" | xfs_attr -s "attribute_$v" $testfile >/dev/null
|
||||
echo "value_$v" | attr -s "attribute_$v" $testfile >/dev/null
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo "!!! failed to add \"attribute_$v\""
|
||||
@@ -161,14 +161,14 @@ done
|
||||
|
||||
echo "*** check"
|
||||
# don't print it all out...
|
||||
xfs_attr -l $testfile \
|
||||
attr -l $testfile \
|
||||
| $AWK_PROG '{ l++ } END {print " *** " l " attribute(s)" }'
|
||||
|
||||
echo "*** remove lots of attributes"
|
||||
v=0
|
||||
while [ $v -lt 1000 ]
|
||||
do
|
||||
if ! xfs_attr -r "attribute_$v" $testfile >/dev/null
|
||||
if ! attr -r "attribute_$v" $testfile >/dev/null
|
||||
then
|
||||
echo "!!! failed to add \"attribute_$v\""
|
||||
exit 1
|
||||
|
||||
@@ -59,12 +59,12 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
|
||||
_s()
|
||||
{
|
||||
echo $2 | xfs_attr -s $1 $testfile >/dev/null
|
||||
echo $2 | attr -s $1 $testfile >/dev/null
|
||||
}
|
||||
|
||||
_attr()
|
||||
{
|
||||
xfs_attr $* 2>$tmp.err >$tmp.out
|
||||
attr $* 2>$tmp.err >$tmp.out
|
||||
exit=$?
|
||||
sed "s#$SCRATCH_MNT[^ .:]*#<TESTFILE>#g; s#$tmp[^ :]*#<TMPFILE>#g;" $tmp.out
|
||||
sed "s#$SCRATCH_MNT[^ .:]*#<TESTFILE>#g; s#$tmp[^ :]*#<TMPFILE>#g;" $tmp.err 1>&2
|
||||
|
||||
Reference in New Issue
Block a user