Displaying 1 result from an estimated 1 matches for "get_selected_drive_size".
2009 May 21
1
[PATCH node] display descriptions for all disks
...files changed, 19 insertions(+), 12 deletions(-)
diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage
index be5aec0..671ad7d 100755
--- a/scripts/ovirt-config-storage
+++ b/scripts/ovirt-config-storage
@@ -36,15 +36,17 @@ logging_min_size=5
data_min_size=5
swap_min_size=5
-get_selected_drive_size()
+get_drive_size()
{
- start_log
+ local drive=$1
+ local space_var=$2
+
local size=
- local udi=$(hal-find-by-property --key block.device --string $DRIVE)
+ local udi=$(hal-find-by-property --key block.device --string $drive)
if [ -z "$udi" ]; then
# I...