search for: mpath_var

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

2010 Mar 17
1
[PATCH][node REPOST] Improve performance of multipath translations
...$(grep -H "^$id$" /sys/block/*/dev | cut -d: -f1) + + if [ -n "$device_sys" ]; then + eval $device_var=$(basename $(dirname $device_sys)) + return + fi eval $device_var=1 } @@ -83,10 +82,23 @@ translate_multipath_device() { local dev=$1 local mpath_var=$2 + if [ -z "$dev" ]; then + if [ -n "$mpath_var" ]; then + eval $mpath_var= + fi + return + fi + if [[ "$dev" =~ "/dev/mapper" ]]; then + eval $mpath_var=$dev + return + fi + local basedev=$(ba...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...else deplist="$deplist $device" fi @@ -79,8 +79,8 @@ get_multipath_devices() { #return sdX device if no multipath device translate_multipath_device() { #trim so that only sdX is stored, but support passing /dev/sdX - local dev=$1 - local mpath_var=$2 + local dev="$1" + local mpath_var="$2" if [ -z "$dev" ]; then if [ -n "$mpath_var" ]; then @@ -89,36 +89,36 @@ translate_multipath_device() { return fi if [[ "$dev" =~ "/dev/mapper" ]]; then -...
2010 Mar 10
0
[PATCH node] Improve performance of multipath translations
...$(grep -H "^$id$" /sys/block/*/dev | cut -d: -f1) + + if [ -n "$device_sys" ]; then + eval $device_var=$(basename $(dirname $device_sys)) + return + fi eval $device_var=1 } @@ -83,10 +82,17 @@ translate_multipath_device() { local dev=$1 local mpath_var=$2 + if [[ $dev =~ "/dev/mapper" ]]; then + eval $mpath_var=$dev + return + fi + local basedev=$(basename $dev) - local mpath_device=$(multipath -ll $dev |grep -n . | \ - grep "^1:" |awk '{print $1}' | sed 's/^1:/\/dev\/mapper\//g...
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