_attr()
{
- xfs_attr $* 2>$tmp.err >$tmp.out
+ attr $* 2>$tmp.err >$tmp.out
exit=$?
_filter $tmp.out
_filter $tmp.err 1>&2
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\""
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