]> git.pld-linux.org Git - packages/parted.git/blob - 0053-tests-Set-optimal-blocks-to-64-for-scsi_debug-device.patch
- rel 4; tons of patches from FC
[packages/parted.git] / 0053-tests-Set-optimal-blocks-to-64-for-scsi_debug-device.patch
1 From a5f1b41b0a10fc1dc64f17b677ddf14e15f8d40e Mon Sep 17 00:00:00 2001
2 From: "Brian C. Lane" <bcl@redhat.com>
3 Date: Tue, 23 Aug 2016 08:55:18 -0700
4 Subject: [PATCH 53/53] tests: Set optimal blocks to 64 for scsi_debug devices
5
6 The Linux kernel 4.5 changed the optimal blocks count from 64 to 1024
7 This causes tests using scsi_debug devices to fail because of alignment
8 issues. Set the opt_blks to 64 so that we have consistent behavior
9 across kernels.
10
11 (cherry picked from commit bd2664285e4014d2d4c80cee3e87609272e1fca9)
12 ---
13  tests/t-local.sh | 2 +-
14  1 file changed, 1 insertion(+), 1 deletion(-)
15
16 diff --git a/tests/t-local.sh b/tests/t-local.sh
17 index a7d5226..13073d2 100644
18 --- a/tests/t-local.sh
19 +++ b/tests/t-local.sh
20 @@ -98,7 +98,7 @@ scsi_debug_setup_()
21    # It is not trivial to determine the name of the device we're creating.
22    # Record the names of all /sys/block/sd* devices *before* probing:
23    touch stamp
24 -  modprobe scsi_debug "$@" || { rm -f stamp; return 1; }
25 +  modprobe scsi_debug opt_blks=64 "$@" || { rm -f stamp; return 1; }
26    scsi_debug_modprobe_succeeded_=1
27    test "$VERBOSE" = yes \
28      && echo $ME_ modprobe scsi_debug succeeded 1>&2
29 -- 
30 2.7.4
31
This page took 0.064035 seconds and 3 git commands to generate.