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 <zlang@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Zorro Lang
2017-08-30 14:26:45 +08:00
committed by Eryu Guan
parent 8d085f7a03
commit fb3c560d49
+4
View File
@@ -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