diff options
author | Brian C. Lane <bcl@redhat.com> | 2016-08-23 08:55:18 -0700 |
---|---|---|
committer | Brian C. Lane <bcl@redhat.com> | 2016-12-22 13:58:04 -0800 |
commit | da36186cb4c2c0470a6490aed424a8d51a2b1085 (patch) | |
tree | 0872e8a5d21b333d339ca37477ffd4a115ab9519 /tests | |
parent | 35b742afe520cac7975f09224dd3489601b4c10f (diff) | |
download | parted-da36186cb4c2c0470a6490aed424a8d51a2b1085.tar.gz |
tests: Set optimal blocks to 64 for scsi_debug devices
The Linux kernel 4.5 changed the optimal blocks count from 64 to 1024
This causes tests using scsi_debug devices to fail because of alignment
issues. Set the opt_blks to 64 so that we have consistent behavior
across kernels.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/t-local.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/t-local.sh b/tests/t-local.sh index a7d5226..13073d2 100644 --- a/tests/t-local.sh +++ b/tests/t-local.sh @@ -98,7 +98,7 @@ scsi_debug_setup_() # It is not trivial to determine the name of the device we're creating. # Record the names of all /sys/block/sd* devices *before* probing: touch stamp - modprobe scsi_debug "$@" || { rm -f stamp; return 1; } + modprobe scsi_debug opt_blks=64 "$@" || { rm -f stamp; return 1; } scsi_debug_modprobe_succeeded_=1 test "$VERBOSE" = yes \ && echo $ME_ modprobe scsi_debug succeeded 1>&2 |