2008-04-06 23:34:16

by Szabolcs Szakacsits

[permalink] [raw]
Subject: Re: [ANNOUNCEMENT] Linux POSIX file system test suite


On Thu, 3 Apr 2008, Badari Pulavarty wrote:
> On Thu, 2008-04-03 at 00:29 +0300, Szabolcs Szakacsits wrote:
>
> > The default file system type is ext3 and it passes all tests.
>
> Hmm.. I ran it against ext2, ext3, jfs, btrfs. I don't see all "pass"
> on ext3. What am I missing ?

Your unique, consistently failing test cases for all file systems suggest
that you have a buggy private kernel or some other individual issue in your
test environment.

You could use the -x debug shell option in the test scripts, rerun the
failing ones and they will show why these test cases exactly fail.

> btrfs seems to have little more failures.

If you find the reason for the unexpected failures then the btrfs result
will be quite good. Apparently it has only a few link, truncate, and unlink
ctimes update problems. I think that's quite impressive in its state of
development.

Szaka


> ext2:
> ====
>
> Failed Test Stat Wstat Total Fail Failed List of Failed
> -------------------------------------------------------------------------------
> /root/posix/tests/chmod/00.t 58 2 3.45% 3 19
> /root/posix/tests/chown/00.t 171 4 2.34% 141 145 149 153
> /root/posix/tests/link/00.t 82 6 7.32% 3 5-6 8-10
> /root/posix/tests/open/05.t 12 2 16.67% 5 9
> /root/posix/tests/rename/00.t 79 9 11.39% 3 6 8-9 11 13 37
> 39 42
> /root/posix/tests/symlink/00.t 14 2 14.29% 2 5
> /root/posix/tests/truncate/05.t 15 5 33.33% 5-6 10-12
> /root/posix/tests/truncate/12.t 3 1 33.33% 2
> /root/posix/tests/truncate/13.t 4 2 50.00% 2-3
> Failed 9/184 test scripts, 95.11% okay. 33/1950 subtests failed, 98.31% okay.
>
>
> ext3:
> ====
>
> Failed Test Stat Wstat Total Fail Failed List of Failed
> -------------------------------------------------------------------------------
> /root/posix/tests/chmod/00.t 58 2 3.45% 3 19
> /root/posix/tests/link/00.t 82 6 7.32% 3 5-6 8-10
> /root/posix/tests/open/05.t 12 2 16.67% 5 9
> /root/posix/tests/rename/00.t 79 9 11.39% 3 6 8-9 11 13 37
> 39 42
> /root/posix/tests/symlink/00.t 14 2 14.29% 2 5
> /root/posix/tests/truncate/05.t 15 5 33.33% 5-6 10-12
> /root/posix/tests/truncate/12.t 3 1 33.33% 2
> /root/posix/tests/truncate/13.t 4 2 50.00% 2-3
> Failed 8/184 test scripts, 95.65% okay. 29/1950 subtests failed, 98.51% okay.
>
>
> jfs:
> ===
>
> Failed Test Stat Wstat Total Fail Failed List of Failed
> -------------------------------------------------------------------------------
> /root/posix/tests/chmod/00.t 58 2 3.45% 3 19
> /root/posix/tests/chown/00.t 171 4 2.34% 141 145 149 153
> /root/posix/tests/link/00.t 82 6 7.32% 3 5-6 8-10
> /root/posix/tests/open/05.t 12 2 16.67% 5 9
> /root/posix/tests/rename/00.t 79 9 11.39% 3 6 8-9 11 13 37
> 39 42
> /root/posix/tests/symlink/00.t 14 2 14.29% 2 5
> /root/posix/tests/truncate/05.t 15 5 33.33% 5-6 10-12
> /root/posix/tests/truncate/12.t 3 1 33.33% 2
> /root/posix/tests/truncate/13.t 4 2 50.00% 2-3
> Failed 9/184 test scripts, 95.11% okay. 33/1950 subtests failed, 98.31% okay.
>
>
> btrfs:
> =====
>
> Failed Test Stat Wstat Total Fail Failed List of Failed
> -------------------------------------------------------------------------------
> /root/posix/tests/chmod/00.t 58 2 3.45% 3 19
> /root/posix/tests/chown/00.t 171 4 2.34% 141 145 149 153
> /root/posix/tests/link/00.t 82 8 9.76% 3 5-6 8-10 56 63
> /root/posix/tests/open/05.t 12 2 16.67% 5 9
> /root/posix/tests/rename/00.t 79 9 11.39% 3 6 8-9 11 13 37
> 39 42
> /root/posix/tests/symlink/00.t 14 2 14.29% 2 5
> /root/posix/tests/truncate/00.t 21 1 4.76% 15
> /root/posix/tests/truncate/05.t 15 5 33.33% 5-6 10-12
> /root/posix/tests/truncate/12.t 3 1 33.33% 2
> /root/posix/tests/truncate/13.t 4 2 50.00% 2-3
> /root/posix/tests/unlink/00.t 55 3 5.45% 17 22 53
> Failed 11/184 test scripts, 94.02% okay. 39/1950 subtests failed, 98.00% okay.
>
>
>

--
NTFS-3G: http://ntfs-3g.org



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone


2008-04-07 17:04:05

by Badari Pulavarty

[permalink] [raw]
Subject: Re: [ANNOUNCEMENT] Linux POSIX file system test suite


On Mon, 2008-04-07 at 02:34 +0300, Szabolcs Szakacsits wrote:
> On Thu, 3 Apr 2008, Badari Pulavarty wrote:
> > On Thu, 2008-04-03 at 00:29 +0300, Szabolcs Szakacsits wrote:
> >
> > > The default file system type is ext3 and it passes all tests.
> >
> > Hmm.. I ran it against ext2, ext3, jfs, btrfs. I don't see all "pass"
> > on ext3. What am I missing ?
>
> Your unique, consistently failing test cases for all file systems suggest
> that you have a buggy private kernel or some other individual issue in your
> test environment.
>
> You could use the -x debug shell option in the test scripts, rerun the
> failing ones and they will show why these test cases exactly fail.

I am running 2.6.25-rc8-mm1. What I noticed is, these failures happen
on ppc64. I ran the tests on x86-64 and ext2, ext3 passed all the tests.

> > btrfs seems to have little more failures.
>
> If you find the reason for the unexpected failures then the btrfs result
> will be quite good. Apparently it has only a few link, truncate, and unlink
> ctimes update problems. I think that's quite impressive in its state of
> development.

Yes. Indeed. btrfs has only these tests failing now (x86-64).


Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
/root/posix/tests/link/00.t 82 2 2.44% 56 63
/root/posix/tests/truncate/00.t 21 1 4.76% 15
/root/posix/tests/unlink/00.t 55 3 5.45% 17 22 53
Failed 3/184 test scripts, 98.37% okay. 6/1950 subtests failed, 99.69% okay.

Thanks,
Badari


2008-04-08 15:37:50

by Badari Pulavarty

[permalink] [raw]
Subject: ext4 not updating ctime on truncate ?


Hi,

I ran Linux POSIX filesystem test suite released by Szabolcs Szakacsits
on ext4. I get one failure on ext4.

Failed Test Stat Wstat Total Fail Failed List of
Failed
-------------------------------------------------------------------------------
/root/posix/tests/truncate/00.t 21 1 4.76% 15

Looking at the test, its complaining that ext4 is not updating ctime
for truncate. Is this a known issue ?

# successful truncate(2) updates ctime.
expect 0 create ${n0} 0644
ctime1=`${fstest} stat ${n0} ctime`
sleep 1
expect 0 truncate ${n0} 123
ctime2=`${fstest} stat ${n0} ctime`
test_check $ctime1 -lt $ctime2


Thanks,
Badari



2008-04-08 15:41:01

by Eric Sandeen

[permalink] [raw]
Subject: Re: ext4 not updating ctime on truncate ?

Badari Pulavarty wrote:
> Hi,
>
> I ran Linux POSIX filesystem test suite released by Szabolcs Szakacsits
> on ext4. I get one failure on ext4.
>
> Failed Test Stat Wstat Total Fail Failed List of
> Failed
> -------------------------------------------------------------------------------
> /root/posix/tests/truncate/00.t 21 1 4.76% 15
>
> Looking at the test, its complaining that ext4 is not updating ctime
> for truncate. Is this a known issue ?

Solofo sent a patch for this just yesterday:

[PATCH] ext4: update ctime and mtime for truncate with extents.

-Eric