git.samba.org
/
tridge
/
autocluster.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
647d2e0
)
Only print message about creating a disk when actually creating a disk.
author
Martin Schwenke
<martin@meltin.net>
Wed, 12 May 2010 02:46:02 +0000
(12:46 +1000)
committer
Martin Schwenke
<martin@meltin.net>
Wed, 12 May 2010 02:46:02 +0000
(12:46 +1000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
autocluster
patch
|
blob
|
history
diff --git
a/autocluster
b/autocluster
index 99fe4f8e4d7580d7129b061c8035b5c35e9faf4a..7811f8c03afd3f60eba141f753607413c5211e66 100755
(executable)
--- a/
autocluster
+++ b/
autocluster
@@
-181,14
+181,15
@@
create_node_COMMON ()
mkdir -p $VIRTBASE/$CLUSTER tmp
- echo "Creating the disk"
rm -f "$DISK"
case "$SYSTEM_DISK_FORMAT" in
qcow2)
+ echo "Creating the disk..."
qemu-img create -b "$base_disk" -f qcow2 "$DISK"
create_node_configure_image "$DISK" "$type"
;;
raw)
+ echo "Creating the disk..."
cp -v --sparse=always "$base_disk" "$DISK"
create_node_configure_image "$DISK" "$type"
;;