]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/366: fix directio requirements checking
authorDarrick J. Wong <djwong@kernel.org>
Tue, 26 Nov 2024 01:24:11 +0000 (17:24 -0800)
committerZorro Lang <zlang@kernel.org>
Thu, 28 Nov 2024 13:39:49 +0000 (21:39 +0800)
commitf4ac46a85121f09656e2863fb437057d08408e6a
treeac4b6f345322e1dacc1c052c4082262053e3be69
parentd6596effc4dfa276e7a3389a07b6dbcb65f9f87a
generic/366: fix directio requirements checking

On a system with 4k-sector storage devices, this test fails with:

 --- /tmp/fstests/tests/generic/366.out 2024-11-17 09:04:53.161104479 -0800
 +++ /var/tmp/fstests/generic/366.out.bad 2024-11-20 21:02:30.948000000 -0800
 @@ -1,2 +1,34 @@
  QA output created by 366
 +fio: io_u error on file /opt/file1: Invalid argument: read offset=15360, buflen=512
 +fio: io_u error on file /opt/file1: Invalid argument: read offset=15360, buflen=512

The cause of this failure is that we cannot do 512byte directios to a
device with 4k LBAs.  Update the precondition checking to exclude this
scenario.

Cc: fstests@vger.kernel.org # v2024.11.17
Fixes: 4c1629ae3a3a56 ("generic: new test case to verify if certain fio load will hang the filesystem")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/366