diff options
| author | Simon Rettberg | 2013-11-20 13:42:16 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2013-11-20 13:42:16 +0100 |
| commit | 0017e9f7dd93838b3d907924697853c46c200e25 (patch) | |
| tree | cfc77be10e8f527f3d7035957521656dabc016ab /remote/modules/dnbd3/data/opt/openslx/scripts | |
| parent | weg (diff) | |
| parent | [vmchooser] Add Trap to run-virt (diff) | |
| download | tm-scripts-0017e9f7dd93838b3d907924697853c46c200e25.tar.gz tm-scripts-0017e9f7dd93838b3d907924697853c46c200e25.tar.xz tm-scripts-0017e9f7dd93838b3d907924697853c46c200e25.zip | |
Merge branch 'master' of simonslx:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/dnbd3/data/opt/openslx/scripts')
| -rwxr-xr-x | remote/modules/dnbd3/data/opt/openslx/scripts/systemd-setup_dnbd3 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/remote/modules/dnbd3/data/opt/openslx/scripts/systemd-setup_dnbd3 b/remote/modules/dnbd3/data/opt/openslx/scripts/systemd-setup_dnbd3 index 9c76bfa6..f424e3b9 100755 --- a/remote/modules/dnbd3/data/opt/openslx/scripts/systemd-setup_dnbd3 +++ b/remote/modules/dnbd3/data/opt/openslx/scripts/systemd-setup_dnbd3 @@ -1,9 +1,9 @@ #!/bin/sh -insmod /lib/modules/dnbd3/dnbd3.ko +insmod /lib/modules/dnbd3/dnbd3.ko || exit 1 [ -e "/dev/dnbd0" ] || exit 1 -for i in 0 1 2 3 4 5 6 7; do - echo 8192 > "/sys/block/dnbd${i}/queue/nr_requests" +for i in /dev/dnbd*; do + echo 8192 > "/sys/block/dnbd${i#/dev/dnbd}/queue/nr_requests" done exec -- dnbd3-client --daemon |
