Bug 1210775 - GFAPI should have a mechanism to receive and return xdata from/to application
Summary: GFAPI should have a mechanism to receive and return xdata from/to application
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: GlusterFS
Classification: Community
Component: libgfapi
Version: mainline
Hardware: All
OS: All
medium
medium
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact: Sudhir D
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-10 14:23 UTC by Raghavendra Talur
Modified: 2017-01-09 10:13 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-09 10:13:10 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Raghavendra Talur 2015-04-10 14:23:39 UTC
Description of problem:

An application would greatly benefit if libgfapi could receive and return
xdata.

If this is not acceptable as it makes API not tightly bound, can we define
flags which can be packaged within gfapi as xdata and sent below.

Basically it is a request to allow overloading of all gfapi calls.

Bug https://bugzilla.redhat.com/show_bug.cgi?id=1158621 was raised to add
xdata for syncop and gfapi both.

Closing that bug after adding xdata support to syncop.
This bug will be used for tracking xdata support in gfapi.

Comment 1 Niels de Vos 2016-11-18 14:57:11 UTC
Could you explain a little more about the keys/values that you would like to pass through xdata? Because there is no type-checking in xdata, it is not a very useful API for most users. We should aim to bring real functions and structures to gfapi, not hacky xdata-like approaches.

Also, xdata tends to be a dict_t structure. We can not reasonably expose that to applications. I will need to become a standard array/list of some kind.

Comment 2 Raghavendra Talur 2017-01-09 08:10:07 UTC
This bug was created long back. Now I agree with Niels and would want the API to be extended only when needed and with proper type checking. Having a generic mechanism to pass arbitrary data is dangerous.

Niels,
Please closed this bug.


Note You need to log in before you can comment on or make changes to this bug.