// SPDX-License-Identifier: GPL-2.0 /* * Feature set bits and string conversion. * Inspired by ext4's features compat/incompat/ro_compat related code. * * Copyright 2020 Coly Li <[email protected]> * */ #include "bcache_ondisk.h" #include "bcache.h" #include "features.h" struct feature { … }; static struct feature feature_list[] = …; #define compose_feature_string(type) … int bch_print_cache_set_feature_compat(struct cache_set *c, char *buf, int size) { … } int bch_print_cache_set_feature_ro_compat(struct cache_set *c, char *buf, int size) { … } int bch_print_cache_set_feature_incompat(struct cache_set *c, char *buf, int size) { … }