search for: device_var

Displaying 4 results from an estimated 4 matches for "device_var".

2010 Mar 10
0
[PATCH node] Improve performance of multipath translations
...es changed, 37 insertions(+), 9 deletions(-) diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage index aea73f8..cf73aa4 100755 --- a/scripts/ovirt-config-storage +++ b/scripts/ovirt-config-storage @@ -38,13 +38,12 @@ swap_min_size=5 get_sd_name() { local id=$1 local device_var=$2 - for device in $(ls /sys/block) - do - if [[ $id = $(cat /sys/block/$device/dev) ]]; then - eval $device_var=$device - return - fi - done + local device_sys=$(grep -H "^$id$" /sys/block/*/dev | cut -d: -f1) + + if [ -n "$device_s...
2010 Mar 17
1
[PATCH][node REPOST] Improve performance of multipath translations
...s changed, 58 insertions(+), 23 deletions(-) diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage index 6525847..539f58c 100755 --- a/scripts/ovirt-config-storage +++ b/scripts/ovirt-config-storage @@ -38,13 +38,12 @@ swap_min_size=5 get_sd_name() { local id=$1 local device_var=$2 - for device in $(ls /sys/block) - do - if [[ $id = $(cat /sys/block/$device/dev) ]]; then - eval $device_var=$device - return - fi - done + local device_sys=$(grep -H "^$id$" /sys/block/*/dev | cut -d: -f1) + + if [ -n "$device_s...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...r diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage index 8d59a6b..9fee10e 100755 --- a/scripts/ovirt-config-storage +++ b/scripts/ovirt-config-storage @@ -36,12 +36,12 @@ swap_min_size=5 # return sd name for given #:# identifier get_sd_name() { - local id=$1 - local device_var=$2 + local id="$1" + local device_var="$2" local device_sys=$(grep -H "^$id$" /sys/block/*/dev | cut -d: -f1) if [ -n "$device_sys" ]; then - eval $device_var=$(basename $(dirname $device_sys)) + eval $device_var=$(basename $(di...
2010 Feb 24
5
New Storage related patches
This set of patches introduces support for multipath devices for storage. Comments and suggestions are appreciated. Mike