]> 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>
Wed, 17 Oct 2012 01:16:44 +0000 (21:16 -0400)
commit01df6f2bff98d8fc68350ab90c212780ef9db67a
tree40fa8d1744713f50661bf9fc13e466e5d9d75081
parent3143c81ca19811e5742f5738eaa4abc6c9229303
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
src/storage/storage_backend_logical.c