Displaying 2 results from an estimated 2 matches for "get_multipath_dep".
Did you mean:
get_multipath_deps
2011 Aug 17
0
[PATCH node] cciss autoinstall fix
...cripts/ovirt-config-storage | 21 +++++++++++++++------
1 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage
index c8fb049..46f7e19 100755
--- a/scripts/ovirt-config-storage
+++ b/scripts/ovirt-config-storage
@@ -83,6 +83,7 @@ get_multipath_deps() {
translate_multipath_device() {
#trim so that only sdX is stored, but support passing /dev/sdX
local dev="$1"
+ local dm_dev
if [ -z "$dev" ]; then
return 1
@@ -90,15 +91,23 @@ translate_multipath_device() {
if [[ "$dev" =~ "/...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...rue, stdout=PIPE, stderr=STDOUT)
+ device_sys_output = device_sys.stdout.read().strip()
+ if not device_sys_output is "":
+ device = os.path.basename(device_sys_output)
+ return device
+ return False
+
+
+# gets the dependent block devices for multipath devices
+def get_multipath_deps(mpath_device, deplist_var):
+ return
+ deplist=""
+ #get dependencies for multipath device
+ deps_cmd ="dmsetup deps -u \"mpath-%s\" \
+ | sed -r 's/\(([0-9]+), ([0-9]+)\)/\1:\2/g' \
+ | sed 's/ /\n/g' | grep [0-9]:[0-9] 2>/dev/null&quo...