[Gluster-infra] [Bug 1562670] Run libgfapi-python tests on Gerrit against glusterfs changes

bugzilla at redhat.com bugzilla at redhat.com
Wed Jul 25 10:55:39 UTC 2018


Niels de Vos <ndevos at redhat.com> changed:

           What    |Removed                     |Added
                 CC|                            |ndevos at redhat.com,
                   |                            |ppai at redhat.com
              Flags|                            |needinfo?(ppai at redhat.com)

--- Comment #5 from Niels de Vos <ndevos at redhat.com> ---
I think we might need to add a way to do feature detection through new gfapi

How about adding this:

int glfs_supports(glfs_t *fs, enum glfs_feature)

enum glfs_features {

It can return 1=YES, 0=NO, -1=unknown feature. Any changes in the API can then
be dynamically checked, making it possible for non-compiled languages (like
Python) to handle different versions. Some features may be available only when
a particular option is set in for the volume, by passing the glfs_t it would be
possible to support these kind of requests as well.

You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=xOWW9a23v7&a=cc_unsubscribe

More information about the Gluster-infra mailing list