[PATCH] xfs/095: require 512b sector size SCRATCH_DEV

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



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@xxxxxxxxxx>
---
 tests/xfs/095 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/xfs/095 b/tests/xfs/095
index 1f5a51f6..290ccf29 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
-- 
2.13.5

--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux