mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
o Add read_ahead and stripes to struct logical_volume
This commit is contained in:
parent
a352490f88
commit
dc6e03dc5b
@ -257,6 +257,9 @@ int import_lv(struct pool *mem, struct logical_volume *lv, struct lv_disk *lvd)
|
|||||||
else
|
else
|
||||||
lv->status |= ALLOC_CONTIGUOUS;
|
lv->status |= ALLOC_CONTIGUOUS;
|
||||||
|
|
||||||
|
lv->read_ahead = lvd->lv_read_ahead;
|
||||||
|
lv->stripes = lvd->lv_stripes;
|
||||||
|
|
||||||
lv->size = lvd->lv_size;
|
lv->size = lvd->lv_size;
|
||||||
lv->le_count = lvd->lv_allocated_le;
|
lv->le_count = lvd->lv_allocated_le;
|
||||||
|
|
||||||
@ -299,6 +302,9 @@ void export_lv(struct lv_disk *lvd, struct volume_group *vg,
|
|||||||
if (lv->status & SPINDOWN_LV)
|
if (lv->status & SPINDOWN_LV)
|
||||||
lvd->lv_status |= LV_SPINDOWN;
|
lvd->lv_status |= LV_SPINDOWN;
|
||||||
|
|
||||||
|
lvd->lv_read_ahead = lv->read_ahead;
|
||||||
|
lvd->lv_stripes = lv->stripes;
|
||||||
|
|
||||||
lvd->lv_size = lv->size;
|
lvd->lv_size = lv->size;
|
||||||
lvd->lv_allocated_le = lv->le_count;
|
lvd->lv_allocated_le = lv->le_count;
|
||||||
|
|
||||||
|
@ -70,6 +70,8 @@ struct logical_volume {
|
|||||||
char *name;
|
char *name;
|
||||||
|
|
||||||
uint32_t status;
|
uint32_t status;
|
||||||
|
uint32_t read_ahead;
|
||||||
|
uint32_t stripes;
|
||||||
|
|
||||||
uint64_t size;
|
uint64_t size;
|
||||||
uint32_t le_count;
|
uint32_t le_count;
|
||||||
|
Loading…
Reference in New Issue
Block a user