diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-04-02 19:43:35 -0800 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-04-02 19:43:35 -0800 |
commit | 2831b89a7c8ba9262a00ec6d70d1355c02f84a67 (patch) | |
tree | a5f853d851ccfa5f4141b0f8eaa682a0fb649cf7 /libbcachefs.h | |
parent | 6d8881705872edbc2c8fe539312aa40eaa8f281d (diff) |
More cmd_migrate improvements
Factor out bch2_pick_bucket_size() from the format code, and pick the
bucket size before picking the superblock location - that way we can
ensure the superblock gets its own bucket and doesn't trigger warnings
due to the allocation code noticing different types of data in the same
bucket.
Diffstat (limited to 'libbcachefs.h')
-rw-r--r-- | libbcachefs.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libbcachefs.h b/libbcachefs.h index 2e677ae..e5f3b86 100644 --- a/libbcachefs.h +++ b/libbcachefs.h @@ -59,12 +59,13 @@ struct dev_opts { u64 sb_end; }; -struct bch_sb *bcache_format(struct format_opts, struct dev_opts *, size_t); +void bch2_pick_bucket_size(struct format_opts, struct dev_opts *); +struct bch_sb *bch2_format(struct format_opts, struct dev_opts *, size_t); -void bcache_super_write(int, struct bch_sb *); -struct bch_sb *__bcache_super_read(int, u64); -struct bch_sb *bcache_super_read(const char *); +void bch2_super_write(int, struct bch_sb *); +struct bch_sb *__bch2_super_read(int, u64); +struct bch_sb *bch2_super_read(const char *); -void bcache_super_print(struct bch_sb *, int); +void bch2_super_print(struct bch_sb *, int); #endif /* _LIBBCACHE_H */ |