]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: lvm: Don't overwrite lvcreate errors
authorCole Robinson <crobinso@redhat.com>
Wed, 17 Oct 2012 00:25:41 +0000 (20:25 -0400)
committerCole Robinson <crobinso@redhat.com>
Thu, 18 Oct 2012 17:32:18 +0000 (13:32 -0400)
commit95440c51a06659b499cba6901b636da1377b49a0
treebcdbb393bc5f2b2aa25ac698feced4f778bcc12b
parentad5afcd14cea06d3eebb48bfb9081b48a2feda91
storage: lvm: Don't overwrite lvcreate errors

Before:
$ sudo virsh vol-create-as --pool vgvirt sparsetest --capacity 16M --allocation 0
error: Failed to create vol sparsetest
error: internal error Child process (/usr/sbin/lvchange -aln vgvirt/sparsetest) unexpected exit status 5:   One or more specified logical volume(s) not found.

After:
$ sudo virsh vol-create-as --pool vgvirt sparsetest --capacity 16M --allocation 0
error: Failed to create vol sparsetest
error: internal error Child process (/usr/sbin/lvcreate --name sparsetest -L 0K --virtualsize 16384K vgvirt) unexpected exit status 5:   Unable to create new logical volume with no extents
(cherry picked from commit 01df6f2bff98d8fc68350ab90c212780ef9db67a)
src/storage/storage_backend_logical.c