Re: XFS Test Case:252 - Shows Wrong Output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear All,
 
Test Case:13
        echo "  13. data -> unwritten -> data"
        rm -f $testfile
        $XFS_IO_PROG $xfs_io_opt -f -c "truncate 20k" \
                -c "$alloc_cmd 0 20k" \
                -c "pwrite 0k 8k" -c "fsync" \
                -c "pwrite 12k 8k" -c "fsync" \
                -c "$zero_cmd 4k 12k" \
                -c "$map_cmd -v" $testfile | $filter_cmd
        [ $? -ne 0 ] && die_now       

After executing individual case like this:
testfile=/data/usb/sda3/252.testfile

echo "13. data -> unwritten -> data"
rm -f $testfile
xfs_io -f -c "truncate 20k" -c \
"falloc 0 20k" -c "pwrite 0k 8k" -c "fsync" -c "pwrite 12k 8k" -c  \
"fsync" -c "fpunch 4k 12k" -c "fiemap -v" $testfile | $filter_cmd

Original Output(Taken from 252.out):
        13. data -> unwritten -> data
0: [0..7]: data
1: [8..31]: hole
2: [32..39]: data

Output in my case
  13. data -> unwritten -> data
0: [0..15]: data
1: [16..23]: unwritten
2: [24..39]: data

Please let me know about the vailidity of this result.
 
Thanks & Regards,
Amit Sahrawat
On Wed, Jun 22, 2011 at 3:54 PM, Amit Sahrawat <amit.sahrawat83@xxxxxxxxx> wrote:
While executing Test case no: 252 from xfstestsuites - I got Output mismatch.
 
Environment tried:
X86 : Linux version 2.6.31.5-127.fc12.i686.PAE
ARM: Linux version2.6.35.13
 
On looking at the test case and then dividing the total case into invidual test's I could somehow correlate the results as per the commands issues.
Complete output for the '13' commands in this case is as given below:
 
[root@localhost PROGS]# sh cmd.sh
  1. into a hole
0: [0..7]: hole
1: [8..23]: unwritten
2: [24..39]: hole
  2. into allocated space
0: [0..39]: data
  3. into unwritten space
0: [0..39]: unwritten
  4. hole -> data
0: [0..7]: hole
1: [8..15]: unwritten
2: [16..31]: data
3: [32..39]: hole
  5. hole -> unwritten
0: [0..7]: hole
1: [8..15]: unwritten
2: [16..31]: unwritten
3: [32..39]: hole
  6. data -> hole
0: [0..15]: data
1: [16..23]: unwritten
2: [24..39]: hole
  7. data -> unwritten
0: [0..15]: data
1: [16..31]: unwritten
2: [32..39]: hole
  8. unwritten -> hole
0: [0..23]: unwritten
1: [24..39]: hole
  9. unwritten -> data
0: [0..15]: unwritten
1: [16..31]: data
2: [32..39]: hole
  10. hole -> data -> hole
0: [0..7]: hole
1: [8..15]: unwritten
2: [16..23]: data
3: [24..31]: unwritten
4: [32..39]: hole
  11. data -> hole -> data
0: [0..15]: data
1: [16..23]: unwritten
2: [24..39]: data
  12. unwritten -> data -> unwritten
0: [0..15]: unwritten
1: [16..23]: data
2: [24..39]: unwritten
  13. data -> unwritten -> data
0: [0..15]: data
1: [16..23]: unwritten
2: [24..39]: data
[root@localhost PROGS]#
The above output seems as per the tests commands issue. Please correct me if i am wrong.
If this correct, then for the test case we need to change 252.out file.
 
Thanks & Regards,
Amit Sahrawat
 
 
 
 
 

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs

[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux