https://bugzilla.redhat.com/show_bug.cgi?id=1562670
Prashanth Pai <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?([email protected]) | --- Comment #6 from Prashanth Pai <[email protected]> --- (In reply to Niels de Vos from comment #5) > 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. Sounds okay to me -- 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=m1K4bcqUOr&a=cc_unsubscribe _______________________________________________ Gluster-infra mailing list [email protected] https://lists.gluster.org/mailman/listinfo/gluster-infra
