[libvirt] [PATCHv2 3/4] Change virDirCreate to return -errno on failure.

Laine Stump laine at laine.org
Wed Jul 21 18:34:45 UTC 2010


  On 07/21/2010 11:17 AM, Daniel Veillard wrote:
> On Mon, Jul 19, 2010 at 09:21:54PM -0400, Laine Stump wrote:
>> virDirCreate also previously returned 0 on success and errno on
>> failure. This makes it fit the recommended convention of returning 0
>> on success, -errno (ie a negative number) on failure.
>> ---
>>   src/storage/storage_backend_fs.c |    8 ++++----
>>   src/util/util.c                  |   32 +++++++++++++++++---------------
>>   2 files changed, 21 insertions(+), 19 deletions(-)
>>
>> diff --git a/src/storage/storage_backend_fs.c b/src/storage/storage_backend_fs.c
>> index ffb0071..0761bd8 100644
>    ACK,

Pushed. Thanks!




More information about the libvir-list mailing list