getfattr -a --> --absolute-names.
file=$1
echo " *** print attributes"
- if ! _getfattr -ad -e text $file
+ if ! _getfattr -d -e text --absolute-names $file
then
echo " !!! error return"
return 1
echo "*** check"
# don't print it all out...
-getfattr -a $testfile \
+getfattr --absolute-names $testfile \
| tee -a $seq.full \
| $AWK_PROG '
/^#/ { next }
touch $testfile.1
echo "v1" | _attr -s "a1" $testfile.1 >/dev/null
echo "v2--" | _attr -s "a2--" $testfile.1 >/dev/null
-_getfattr -a $testfile.1
+_getfattr --absolute-names $testfile.1
inum_1=`ls -li $testfile.1 | $AWK_PROG '{ print $1 }'`
echo "*** make test file 2"
echo "value_2" | _attr -s "a2-----" $testfile.2 >/dev/null
(echo start ; dd if=/dev/zero bs=65525 count=1 ; echo end ) \
| _attr -s "a3" $testfile.2 >/dev/null
-_getfattr -a $testfile.2
+_getfattr --absolute-names $testfile.2
# print name and size from 1st line of output
_attr -g "a3" $testfile.2 | head -1
getfattr()
{
- /usr/bin/getfattr -adh $@ 2>&1 | _filter_scratch
+ /usr/bin/getfattr --absolute-names -dh $@ 2>&1 | _filter_scratch
}
setfattr()
_backup()
{
# NB: no filtering of scratch here... (need to restore too)
- /usr/bin/getfattr -adh -R -m '^user|^system' $SCRATCH_MNT >$1
+ /usr/bin/getfattr --absolute-names -dh -R -m '^user|^system' $SCRATCH_MNT >$1
echo BACKUP $1 >>$seq.full
cat $1 >> $seq.full
[ ! -s $1 ] && echo "warning: $1 (backup file) is empty"
# sed 's/["]//g' |\
# sort |\
# and this is now the Linux way...
- getfattr -Rha $_path |\
+ getfattr --absolute-names -Rh $_path |\
perl -wn -e '
if (m/^# file: (\S+)/) { $file = $1 }
elsif (m/^user\.(\w+)/) { print $file, " ",$1,"\n" }' |\