xfs/095: require 512b sector size SCRATCH_DEV
authorZorro Lang <zlang@redhat.com>
Wed, 30 Aug 2017 06:26:45 +0000 (14:26 +0800)
committerEryu Guan <eguan@redhat.com>
Sun, 3 Sep 2017 04:19:26 +0000 (12:19 +0800)
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>
tests/xfs/095

index 1f5a51f658542b1a4b4aba6ac4cc7f529465523d..290ccf294201da7b0ff03a7bb113e982252aa33c 100755 (executable)
@@ -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