From: Zorro Lang Date: Wed, 30 Aug 2017 06:26:45 +0000 (+0800) Subject: xfs/095: require 512b sector size SCRATCH_DEV X-Git-Tag: v2022.05.01~1900 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=fb3c560d49a8f33b771e44db3978f0c7ab53ef3e;p=users%2Fhch%2Fxfstests-dev.git xfs/095: require 512b sector size SCRATCH_DEV xfs/095 fails on 4k hard sector size device, due to it runs: _mkfs_log "-l version=1 -m crc=0 -d sectsize=512" So _notrun if SCRATCH_DEV's sector size is bigger than 512b. Signed-off-by: Zorro Lang Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/tests/xfs/095 b/tests/xfs/095 index 1f5a51f65..290ccf294 100755 --- a/tests/xfs/095 +++ b/tests/xfs/095 @@ -50,6 +50,10 @@ _supported_os Linux _require_scratch _require_v2log +if [ "$(blockdev --getss $SCRATCH_DEV)" != "512" ]; then + _notrun "need 512b sector size" +fi + export MOUNT_OPTIONS="-o logbsize=64k" # try and mount a v1 log with a v2 LRsize