New object class selection API
Chaarawi, Mohamad
Hi All,
I would like to highlight a new API we added in 1.2 in regards to object class selection when generating OIDs for objects: https://github.com/daos-stack/daos/blob/master/src/include/daos_obj.h#L404
We understand that our object class list is extremely long and not very intuitive for users. So we made an effort to try and select the best object class ourselves based on few things:
Of course the option for users to select the object class themselves is still supported with the API, and the auto oclass selection is triggered only when the provided oclass is unkown / 0.
Please note that the old API is deprecated: https://github.com/daos-stack/daos/blob/master/src/include/daos_obj.h#L328 and I would like to invite everyone working on middleware on top of DAOS to change to using the new API. DFS (POSIX) has already been migrated but that change did not make it into 1.2 series, but is already in master.
Please let us know if you have questions or need clarifications on this new API.
Thanks, Mohamad |
|