https://bugzilla.redhat.com/show_bug.cgi?id=1562670

Niels de Vos <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected],
                   |                            |[email protected]
              Flags|                            |needinfo?([email protected])



--- Comment #5 from Niels de Vos <[email protected]> ---
I think we might need to add a way to do feature detection through new gfapi
function.

How about adding this:

int glfs_supports(glfs_t *fs, enum glfs_feature)

enum glfs_features {
    GFAPI_READLINK_HAS_FOLLOW = 1,
    GFAPI_GETXATTR_RETURNS_STAT = 2,
    ...
}

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
_______________________________________________
Gluster-infra mailing list
[email protected]
https://lists.gluster.org/mailman/listinfo/gluster-infra

Reply via email to