[Ovirt-devel] [PATCH node] Provides a workaround for HP CCISS devices.

Darryl L. Pierce dpierce at redhat.com
Wed Aug 5 15:28:48 UTC 2009


Since they do not present a block.device property via HAL, this patch
goes directly to /dev/cciss/ and pulls together any devices found there.
It ignores anything that ends with p# since those are partitions and not
block devices.

Signed-off-by: Darryl L. Pierce <dpierce at redhat.com>
---
 scripts/ovirt-config-storage |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage
index 5560b5f..d9b72f8 100755
--- a/scripts/ovirt-config-storage
+++ b/scripts/ovirt-config-storage
@@ -169,6 +169,13 @@ get_dev_name()
     devices="$devices $(ls /dev/vd? 2> /dev/null | xargs)"
     devices=$(echo $devices | tr ' ' '\n' | sort -u | xargs)
 
+    # FIXME: workaround for dealing with cciss devices
+    for dev in $(ls /dev/cciss/); do
+	if [[ ! $dev =~ p[0-9]+\$ ]]; then
+	    devices="$devices /dev/cciss/$dev"
+	fi
+    done
+
     local num_devices=$(echo "$devices" | wc -w)
     # If there's only one device, use it.
     case $num_devices in
-- 
1.6.2.5




More information about the ovirt-devel mailing list