Skip to content

Fix test failures caused by storage devcies with 4k sectors

Theodore Ts'o fstests 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2common: check if the scratch device can support 1024 block sizescommon/rc tests/ext4/055 tests/xfs/205 +2 more+16 -02 replies
2/2generic/563: create the loop dev with the same block size as the scratch devcommon/rc tests/generic/563+9 -31 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchDarrick J. Wong
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] Fix test failures caused by storage devcies with 4k sectors

When testing with an SSD with a 4k logical sector size, I ran into a number of test failures that were caused by assumption that the storage device can support 1k block sizes.

Fix this by skipping those tests, or in the case of generic/563, make sure the loop device has the same block size as the backing scratch device. (Arguably losetup should do that, but at least today, it doesn't.)

This test series was tested using:

    gce-xfstests --local-ssd-nvme -c ext4,xfs,btrfs -g auto

and comparing it against the results of running the same set of tests without the --local-ssd-nvme option, which introduces the use of a 4k sector storage device.

With these patches applied, there is one remaining failure with xfs/157 but I'm not sure how to deal with it, since Google searches regarding the failure message just simply say "Don't try to use a regular file as a logdev", which isn't particularly helpful here. Maybe the right thing is to just hard code a _notrun if "blockdev --getss $SCRATCH_DEV" is not 512? It's not clear to me, so I've left it.

I also noted two new failures with btrfs, generic/175 and generic/251. The cause of why these tests are failing with a 4k sector device is not obvious to me. But certainly things are much better with this patch, and perhaps the the btrfs and xfs developers can address these last new test failures if they care about this particular test scenario.

Theodore Ts'o (2):
common: check if the scratch device can support 1024 block sizes generic/563: create the loop dev with the same block size as the
scratch dev

 common/rc         | 22 ++++++++++++++++++++--
 tests/ext4/055    |  1 +
 tests/generic/563 |  2 +-
 tests/xfs/205     |  1 +
 tests/xfs/432     |  1 +
 tests/xfs/516     |  1 +
 6 files changed, 25 insertions(+), 3 deletions(-)
Signature · 1 line
2.31.0