search for: return_var

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

Did you mean: return_val
2010 Mar 17
1
[PATCH][node REPOST] Improve performance of multipath translations
...ual_input() while true; do read -rp "Enter disk device path: " manual_device if [ -z "$device" ]; then + echo "Aborting." return 1 fi - translate_multipath_device $manual_device manual_device - eval $return_var="$manual_device" + translate_multipath_device "$manual_device" manual_device if [ -n "$manual_device" ]; then if [ -b "$(readlink -f $device)" ]; then + eval $return_var="$manual_device" r...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...; + grep "HostVG"|grep -v "$HOSTVGDRIVE"|awk '{ print $1 }')" rc=0 if [ -n "$devices" ]; then printf "\n" @@ -230,7 +230,7 @@ check_partition_sizes() manual_input() { local manual_device - local return_var=$1 + local return_var="$1" while true; do read -rp "Enter disk device path: " manual_device if [ -z "$device" ]; then @@ -239,7 +239,7 @@ manual_input() fi translate_multipath_device "$manual_device" manual_device...
2010 Mar 10
0
[PATCH node] Improve performance of multipath translations
...uot; ]; then mpath_device=$dev diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions index 6839614..5661bee 100644 --- a/scripts/ovirt-functions +++ b/scripts/ovirt-functions @@ -765,6 +765,28 @@ test_ntp_configuration () { } +get_dm_device () +{ + local device=$1 + local return_var=$2 + major=$(stat -c '%t' $(readlink -f $device)) + minor=$(stat -c '%T' $(readlink -f $device)) + local dm_device= + local rc=1 + for dm in /dev/mapper/*; do + if [ $major = $(stat -c '%t' $dm) -a \ + $minor = $(stat -c '%T' $dm) ];...
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