]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: require filesize to be greater than fs block size in
authorStanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Wed, 11 Dec 2013 11:21:28 +0000 (11:21 +0000)
committerRich Johnston <rjohnston@sgi.com>
Wed, 11 Dec 2013 15:05:54 +0000 (09:05 -0600)
commit43fb49332d0f810c843dc01327b3ca203e997ae7
treed207f74ef39ae3b235b23dfa3dbb3463d183df43
parent527eeb43e5c7cfd642d81bc3c12e746d2a3733ff
generic: require filesize to be greater than fs block size in

 generic/240
Date: Wed, 11 Dec 2013 11:21:28 -0000
From: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>

If we execute generic/240 on a fs which has its fs block size greater
than 64k (for example, NFS), this test will fail with:

  io_submit failed: Invalid argument

This will happen because in src/aio-dio-regress/aiodio_sparse2.c this
expression

  num_aio = filesize / step;

will set num_aio to 0 and this means that no io_prep_write() will happen
before calling io_submit().

Fixing filesize to be 8 * "fs block size".

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
tests/generic/240