[libvirt] [PATCH 1/2] storage: lvm: Don't overwrite lvcreate errors

Eric Blake eblake at redhat.com
Wed Oct 17 01:11:21 UTC 2012


On 10/16/2012 06:38 PM, Cole Robinson wrote:
> 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 | 3 +++
>  1 file changed, 3 insertions(+)

ACK

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20121016/034a896c/attachment-0001.sig>


More information about the libvir-list mailing list