Handle parent pointer attribute namespace in test 021 attr filtering.
authorNathan Scott <nathans@sgi.com>
Tue, 28 Mar 2006 06:04:20 +0000 (06:04 +0000)
committerNathan Scott <nathans@sgi.com>
Tue, 28 Mar 2006 06:04:20 +0000 (06:04 +0000)
Merge of master-melb:xfs-cmds:25581a by kenmcd.

021

diff --git a/021 b/021
index fc3c00759d34efacae7410a6df29f079e21318b3..496d80b8ad1886f697295131df5b7321ca5f083f 100755 (executable)
--- a/021
+++ b/021
@@ -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..]/;