]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
include/ceph_features: define HAVE_FEATURE helper
authorSage Weil <sage@redhat.com>
Fri, 3 Feb 2017 12:55:10 +0000 (07:55 -0500)
committerSage Weil <sage@redhat.com>
Mon, 6 Feb 2017 20:43:50 +0000 (15:43 -0500)
commit311476187eac833cccfe9f5265aca01fd3ae2194
tree267cc27d28b93827250414e0122ccf778116c293
parent40c944e0fdfcd8af215ef1ee966345104f3187c8
include/ceph_features: define HAVE_FEATURE helper

This lets you test a feature succintly by name, *AND* makes use of the
FEATUREMASK so that it can be used on bitmasks that may come from old
versions with prior usages of the bit.  This makes it usable for data
type encoding or with client-provided bits.

Signed-off-by: Sage Weil <sage@redhat.com>
src/include/ceph_features.h