Test for multiple features all being set together. Note that this can be
used with the CEPH_FEATUREMASK_ defines to safely test for reused feature
bits.
Signed-off-by: Sage Weil <sage@redhat.com>
uint64_t get_features() const { return features; }
bool has_feature(uint64_t f) const { return features & f; }
+ bool has_features(uint64_t f) const {
+ return (features & f) == f;
+ }
void set_features(uint64_t f) { features = f; }
void set_feature(uint64_t f) { features |= f; }