Darryl L. Pierce
2009-Aug-05 15:28 UTC
[Ovirt-devel] [PATCH node] Provides a workaround for HP CCISS devices.
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
Seemingly Similar Threads
- [PATCH node] This is a follow-on patch for bz#507455.
- [PATCH] Replace the HAL calls with udev/systool calls.
- [PATCH node] Handle space in storage wwid
- mkinitrd doesn't know how to handle encrypted CCISS devices - RHEL5.4 and Xen4.1.2
- CEEA-2013:1130 CentOS 5 cciss Update