mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
label: make scan_bcache local
Seems there are no users of scan_bcache, so make it local. TODO: such variable should be ideally in cmd_context.
This commit is contained in:
parent
8da0ab6fc1
commit
74e487f3a9
@ -253,7 +253,8 @@ struct label *label_create(struct labeller *labeller)
|
||||
|
||||
|
||||
/* global variable for accessing the bcache populated by label scan */
|
||||
struct bcache *scan_bcache;
|
||||
/* FIXME/TODO convert to cmd_context */
|
||||
static struct bcache *scan_bcache;
|
||||
|
||||
#define BCACHE_BLOCK_SIZE_IN_SECTORS 256 /* 256*512 = 128K */
|
||||
|
||||
|
@ -100,8 +100,6 @@ int label_write(struct device *dev, struct label *label);
|
||||
struct label *label_create(struct labeller *labeller);
|
||||
void label_destroy(struct label *label);
|
||||
|
||||
extern struct bcache *scan_bcache;
|
||||
|
||||
int label_scan(struct cmd_context *cmd);
|
||||
int label_scan_devs(struct cmd_context *cmd, struct dev_filter *f, struct dm_list *devs);
|
||||
int label_scan_devs_cached(struct cmd_context *cmd, struct dev_filter *f, struct dm_list *devs);
|
||||
|
Loading…
Reference in New Issue
Block a user