xfs
[Top] [All Lists]

Re: XFS Test Case:252 - Shows Wrong Output

To: xfs@xxxxxxxxxxx
Subject: Re: XFS Test Case:252 - Shows Wrong Output
From: Amit Sahrawat <amit.sahrawat83@xxxxxxxxx>
Date: Wed, 22 Jun 2011 16:18:52 +0530
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=IwDbETYmmx9lxfYaI2+98/05/9QyfMP03qpQQdpRAcs=; b=wzS7A0Es+05/MTN+uujq9m8xIN6Fw1lMUQi+CnvcGqUr/eh5O74jwOStoVx4sY0+Qp ug8TlV7MK6Gk33P8yZ6DgrUrMhaUmgHXPVDBqZmXARHioH9RJjf+NRJUugHLKZCvwqnl tRpkKY3f15cEQPDARgYWhDc/IqH3ZhL/MSRhI=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=da4G1nh7Za/kHSZp462ylWwxy+CGD8TSrQwFr/aXcNQc+ZhUQE9UyXhVYKOgB86afc ME2bwvBcDX2VJIP/qoN4xzIJ/rbvJHHN2zXrFOBpdW+kES84QGKfg2LSntWv7dnzeB4X DyFV16NAudytKuFpMe4Pv+e3ivNBNuEtPD/nI=
In-reply-to: <BANLkTinBNa9ox+jDaorBoKdhoQQzTUA58A@xxxxxxxxxxxxxx>
References: <BANLkTinBNa9ox+jDaorBoKdhoQQzTUA58A@xxxxxxxxxxxxxx>
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
 
 
 
 
 

<Prev in Thread] Current Thread [Next in Thread>