gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gluster-devel] can glfs_fini ever succeed?


From: Eric Blake
Subject: [Gluster-devel] can glfs_fini ever succeed?
Date: Wed, 30 Oct 2013 15:49:10 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0

I'm trying to use glusterfs-api, but ran into some questions on usage
(currently targetting Fedora 19's glusterfs-api-devel-3.4.1-1.fc19.x86_64).

It looks like glfs_fini() starts with 'ret = -1' and never assigns ret
to any other value.  This in turn leads to odd error messages; I
explicitly coded my application to warn about a negative return value,
but see:

warning : virStorageBackendGlusterClose:52 : shutdown of gluster failed
with errno 0

which contradicts the docs that say errno will be set on failure.

Is this a bug where I should just ignore the return value as useless?

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


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]