if hash type is CEPH_STR_HASH_LINUX/CEPH_STR_HASH_RJENKINS then return true,
if not return false
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
return "unknown";
}
}
+
+bool ceph_str_hash_valid(int type)
+{
+ switch (type) {
+ case CEPH_STR_HASH_LINUX:
+ case CEPH_STR_HASH_RJENKINS:
+ return true;
+ default:
+ return false;
+ }
+}
extern unsigned ceph_str_hash(int type, const char *s, unsigned len);
extern const char *ceph_str_hash_name(int type);
+extern bool ceph_str_hash_valid(int type);
#endif