Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ceph: Add support for rados_create2() API.
We currently use the rados_create() API call but there is also the more flexible rados_create2() API. This patch adds support for this other API. Based on the LIBRADOS_VERSION_CODE we determine if the API is available. We check if we are being compiled on a platform with a API version lower then 0.68.0 as that is the first version where the new usable version of rados_create2 with the 4 flags is available. This was verified by checking the git repo of CEPH and looking for the moment the new API calls was extended to the 4 argument version and then searching back in the history for the first bump of the LIBRADOS_VER_MINOR or LIBRADOS_VER_EXTRA.
- Loading branch information
Marco van Wieringen
committed
Feb 11, 2016
1 parent
0547899
commit e8e18bf
Showing
1 changed file
with
62 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters