]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
091: fix up output when pagesize == sectorsize
authorJeff Moyer <jmoyer@redhat.com>
Mon, 14 Feb 2011 16:44:25 +0000 (11:44 -0500)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 Feb 2011 10:39:53 +0000 (11:39 +0100)
commit3e4fb26f0c0f396b2e6b38b257e21b9f6999ac63
treef94ce1b9b5bf61cc636ad685ea38d2f502a06208
parentaaf690e866972fbd006cfa48cfe617d0bb9b3672
091: fix up output when pagesize == sectorsize

It looks like test 091 is supposed to work on 2.4 kernels, but there's
no way it will.  Checking the actual blocksize and pagesize in the
run_fsx routine, and substituting them for BSIZE and PSIZE is error
prone when the two hold the same value.  This is also a problem for 4k
sector devices.  It's better to pass in what we want (PSIZE or BSIZE)
and then convert that to the command line options that fsx wants in the
run_fsx routine.  This gets rid of the bogus test failure in my
environment.  Also, the setting of bsize for linux-2.6 was redundant, so
I got rid of it.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
091