![]() |
![]()
| ![]() |
![]()
NAMEpmempool_feature_query(), pmempool_feature_enable(), pmempool_feature_disable() - toggle or query pool set featuresSYNOPSIS
DESCRIPTIONThe feature argument accepts following values:
The pmempool_feature_query() function checks state of feature in the pool set pointed by path. The pmempool_feature_enable() function enables feature in the pool set pointed by path. The pmempool_feature_disable() function disables feature in the pool set pointed by path. COMPATIBILITYPoolsets with features not defined in this document (e.g. enabled by the newer software version) are not supported.DISCLAIMERpmempool_feature_query(), pmempool_feature_enable() and pmempool_feature_disable() are not fail safe.RETURN VALUEOn success, pmempool_feature_query() returns 0 if feature is disabled or 1 if it is enabled. On error, it returns -1 and sets errno accordingly.On success, pmempool_feature_enable() returns 0. On error, it returns -1 and sets errno accordingly. On success, pmempool_feature_disable() returns 0. On error, it returns -1 and sets errno accordingly. If path points poolset with remote replica errno is set to EINVAL and function returns -1. If non zero flags are provided errno is set to EINVAL and function returns -1. SEE ALSOpoolset(5) and <http://pmem.io>
|