1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-11-29 00:23:49 +03:00

bcache: move from global variable to cmd struct

This commit is contained in:
David Teigland
2024-07-03 12:58:18 -05:00
parent 77be3250d9
commit 5bf4efbab5
7 changed files with 54 additions and 48 deletions

View File

@@ -236,6 +236,17 @@ struct cmd_context {
const char *devicesfile; /* from --devicesfile option */
struct dm_list deviceslist; /* from --devices option, struct dm_str_list */
/*
* Cache of blocks read from devices, generally blocks containing
* headers and metadata from PVs. (It functions more as an i/o layer
* rather than a cache, the caching occurs when blocks are reused
* between label_scan and vg_read.)
* (FIXME: in some cases blocks from LVs are contained here, e.g. for
* zeroing, but that's not the intended use of bcache, and those cases
* should be changed to perform i/o to LVs separately.)
*/
struct bcache *dev_blocks;
/*
* LV dev index.
*/