commit | 9642a1d29d8d1034039344bdd0cf55f71b5c16c8 | [log] [tgz] |
---|---|---|
author | Coly Li <colyli@suse.de> | Mon Aug 17 00:02:23 2020 +0800 |
committer | Coly Li <colyli@suse.de> | Mon Aug 17 20:01:08 2020 +0800 |
tree | 76f54d203d750fbd130d436b592553361a64a8b4 | |
parent | 1129319af1cb5ec0cd38b283a4a3d14e55d616c7 [diff] |
bcache-tools: add to_cache_sb() and to_cache_sb_disk() This patch adds routines to_cache_sb() to_cache_sb_disk() to lib.c, which convert bcache super block between in-memory and on-disk formats. This is a preparation to separate current struct cache_sb into two structures, - struct cache_sb is for in-memory super block - struct cache_sb_disk is for on-disk super block Signed-off-by: Coly Li <colyli@suse.de>