Handle parent pointer attribute namespace in test 021 attr filtering.

Merge of master-melb:xfs-cmds:25581a by kenmcd.
This commit is contained in:
Nathan Scott
2006-03-28 06:04:20 +00:00
parent e664e8508a
commit ac0abd5dad
+4 -3
View File
@@ -111,7 +111,7 @@ _attr -g "a3" $testfile.2 | tail -3 | wc -c | sed -e "s/^ *//"
echo ""
inum_2=`ls -li $testfile.2 | $AWK_PROG '{ print $1 }'`
echo "*** unmount FS"
umount $SCRATCH_DEV >>$seq.full 2>&1 \
|| _fail "umount failed"
@@ -119,13 +119,14 @@ umount $SCRATCH_DEV >>$seq.full 2>&1 \
echo "*** dump attributes (1)"
xfs_db -r -c "inode $inum_1" -c "print a.sfattr" $SCRATCH_DEV | \
sed -e '/secure = /d'
sed -e '/secure = /d' | sed -e '/parent = /d'
echo "*** dump attributes (2)"
xfs_db -r -c "inode $inum_2" -c "a a.bmx[0].startblock" -c print $SCRATCH_DEV \
| perl -ne '
s/root,secure,local/root,local/;
s/,secure//;
s/,parent//;
s/^(hdr.firstused =) (\d+)/\1 FIRSTUSED/;
s/^(hdr.freemap\[0-2] = \[base,size]).*/\1 [FREEMAP..]/;
s/^(entries\[0-2] = \[hashval,nameidx,incomplete,root,local]).*/\1 [ENTRIES..]/;