[libvirt] [PATCH 05/10] storage: avoid s[n]printf
Eric Blake
eblake at redhat.com
Thu Aug 19 22:26:43 UTC 2010
On 08/19/2010 03:10 PM, Matthias Bolte wrote:
> 2010/8/19 Eric Blake <eblake at redhat.com>:
>> * src/storage/storage_backend.c (virStorageBackendCreateQemuImg)
>> (virStorageBackendCreateQcowCreate): Use virAsprintf instead.
>> * src/storage/storage_backend_disk.c
>> (virStorageBackendDiskCreateVol, virStorageBackendDiskPartFormat):
>> Likewise.
>> ---
>>
>> Things to look out for:
>> virStorageBackendDiskPartFormat can now fail where it used to
>> do nothing to the passed-in partFormat variable, if the switch
>> statement hits the default.
>>
>
> Nice one, before it would just have executed parted with a random
> string in the argumentlist in that case.
>
> ACK.
Thanks; pushed.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100819/a90f8673/attachment-0001.sig>
More information about the libvir-list
mailing list