diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2016-10-04 01:10:24 -0800 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2016-10-06 06:52:54 -0800 |
commit | f3a8d548376295279d2d27fda5764adbe377c55b (patch) | |
tree | b3cb6b8e547fe419427d0490aa88c62bbfa454ae /libbcache.h | |
parent | 837a476cc139167fc483016f0a2635a048f7709e (diff) |
bcache device_show now dumps superblocks
Diffstat (limited to 'libbcache.h')
-rw-r--r-- | libbcache.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libbcache.h b/libbcache.h index ccfa37cb..920a9c51 100644 --- a/libbcache.h +++ b/libbcache.h @@ -4,6 +4,15 @@ #include "util.h" #include "stdbool.h" +extern const char * const cache_state[]; +extern const char * const replacement_policies[]; +extern const char * const csum_types[]; +extern const char * const compression_types[]; +extern const char * const str_hash_types[]; +extern const char * const error_actions[]; +extern const char * const bdev_cache_mode[]; +extern const char * const bdev_state[]; + struct dev_opts { int fd; const char *path; @@ -29,6 +38,8 @@ void bcache_format(struct dev_opts *devs, size_t nr_devs, char *label, uuid_le uuid); -void bcache_super_read(const char *, struct cache_sb *); +void bcache_super_print(struct cache_sb *, int); + +struct cache_sb *bcache_super_read(const char *); #endif /* _LIBBCACHE_H */ |