5 # Let's look, xfs_db, at the inode and its literal area for the
6 # extents and the attributes
8 #-----------------------------------------------------------------------
9 # Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved.
10 #-----------------------------------------------------------------------
13 owner=tes@puffy.melbourne.sgi.com
16 echo "QA output created by $seq"
20 status=1 # failure is the default!
21 trap "_cleanup; exit \$status" 0 1 2 3 15
29 # get standard environment, filters and checks
33 # real QA test starts here
35 _notrun "Need to fix up filtering before checkin"
37 # Modify as appropriate.
39 _supported_os IRIX Linux
42 export MKFS_OPTIONS="-i size=512,attr=2"
46 file=$SCRATCH_MNT/file
48 inum=`ls -i $file | awk '{print $1}'`
55 echo ""; echo "** add $start..$end EAs **"
57 while [ $i -le $end ]; do
58 attr -s name.$i -V value $file >/dev/null
67 echo ""; echo "** rm $start..$end EAs **"
69 while [ $i -le $end ]; do
70 attr -r name.$i $file >/dev/null
78 echo ""; echo "** $num extents **"
79 src/makeextents -v -p -w -n $num $file
87 xfs_db -r -c "inode $inum" -c "print" $SCRATCH_DEV |\
89 /nextents/ { print; next }
90 /naextents/ { print; next }
93 /forkoff/ { printf("core.forkoff = %d (%d bytes)\n", $3, $3*8); next }
94 /format/ { print; next }
95 /size/ { print; next }
150 while [ $j -le 30 ]; do
158 while [ $j -ge 1 ]; do
166 while [ $j -le 30 ]; do