@@ -21,6 +21,10 @@ _require_sparse_files
_scratch_mkfs >> $seqres.full 2>&1
_scratch_mount
+blksize=$(_get_file_block_size $SCRATCH_MNT)
+test $blksize -eq $(getconf PAGE_SIZE) || \
+ _notrun "swap file allocation unit size must match page size"
+
# We can't use _format_swapfile because we're using our custom mkswap and
# swapon.
touch "$SCRATCH_MNT/swap"
@@ -38,6 +38,10 @@ _scratch_mkfs >> $seqres.full 2>&1
export MOUNT_OPTIONS=""
_scratch_mount >> $seqres.full 2>&1
+blksize=$(_get_file_block_size $SCRATCH_MNT)
+test $blksize -eq $(getconf PAGE_SIZE) || \
+ _notrun "file block size must match page size"
+
# real QA test starts here
$here/src/t_mmap_collision $TEST_DIR/testfile $SCRATCH_MNT/testfile