projects
/
invirt/packages/invirt-database.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a092235
)
throw error when disk creation fails
author
Tim Abbott
<tabbott@mit.edu>
Mon, 8 Oct 2007 08:27:51 +0000
(
04:27
-0400)
committer
Tim Abbott
<tabbott@mit.edu>
Mon, 8 Oct 2007 08:27:51 +0000
(
04:27
-0400)
svn path=/trunk/packages/sipb-xen-database/sipb-xen-database/; revision=142
client/usr/sbin/sipb-xen-lvcreate
patch
|
blob
|
history
diff --git
a/client/usr/sbin/sipb-xen-lvcreate
b/client/usr/sbin/sipb-xen-lvcreate
index
3d886ca
..
d1d7576
100755
(executable)
--- a/
client/usr/sbin/sipb-xen-lvcreate
+++ b/
client/usr/sbin/sipb-xen-lvcreate
@@
-24,3
+24,4
@@
for d in Disk.select():
rv = call(["lvcreate", "-L", str(d.size) + "M", "-n", lvname, vg])
if rv != 0:
print >>sys.stderr, "Error creating LV %s\n" %(lvname,)
+ sys.exit(1)