Displaying 4 results from an estimated 4 matches for "install_dev".
2010 Jul 21
0
[PATCH] RFC: Advanced Storage Configuration
...any device on the system.
+# Return 0 if there is a VG found, unless the only one found is on $1
 # Return 1 if no HostVG found or only found on $1
 # XXX
 #    from check_partition_sizes():
 #    if [ "$OVIRT_ISCSI_ENABLED" != "y" ]; then
 check_existing_hostvg()
 {
-    local install_dev="$1"
+    local install_dev=
+    local dev=
+    for dev in $1; do
+        if [ -n "${install_dev}" ]; then
+            install_dev="${install_dev}+|${dev}"
+        else
+            install_dev="${dev}"
+        fi
+    done
     local devices_var=$2
+...
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
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...- $LOGGING_SIZE ))
                 test $remaining_mb -lt 0 && is_negative=1
@@ -529,7 +529,7 @@ check_existing_hostvg()
             grep "HostVG" | awk '{print $1}' )"
     else
         devices="$(pvs -o pv_name,vg_name --noheadings | \
-            grep -v ${install_dev} | grep "HostVG" | awk '{print $1}' )"
+            grep -v "${install_dev}" | grep "HostVG" | awk '{print $1}' )"
     fi
     rc=1
     if [ -n "$devices" ]; then
@@ -537,7 +537,7 @@ check_existing_hostvg()
         printf "Th...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...size = subprocess.Popen(size_cmd, shell=True, stdout=PIPE, stderr=STDOUT)
+#    size_output = size.stdout.read()
+#    size_output = size_output / 1024
+#    log("%s (%s MB)") % (drive, size_output)
+#    if not space_var is None:
+#        return space_var
+
+def check_existing_hostvg(install_dev):
+    if install_dev is None:
+        devices="$(pvs --separator=\" \" -o pv_name,vg_name --noheadings | grep \"HostVG\" | cut -f1)"
+    else:
+        devices="$(pvs --separator=\" \" -o pv_name,vg_name --noheadings | grep -v \"%s\" | grep...