1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-02 06:42:58 +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:
Zdenek Kabelac 2024-05-13 01:49:00 +02:00
parent 8da0ab6fc1
commit 74e487f3a9
2 changed files with 2 additions and 3 deletions

View File

@ -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 */

View File

@ -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);