1
0
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:
Joe Thornber 2001-10-29 15:34:56 +00:00
parent a352490f88
commit dc6e03dc5b
2 changed files with 8 additions and 0 deletions

View File

@ -257,6 +257,9 @@ int import_lv(struct pool *mem, struct logical_volume *lv, struct lv_disk *lvd)
else
lv->status |= ALLOC_CONTIGUOUS;
lv->read_ahead = lvd->lv_read_ahead;
lv->stripes = lvd->lv_stripes;
lv->size = lvd->lv_size;
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)
lvd->lv_status |= LV_SPINDOWN;
lvd->lv_read_ahead = lv->read_ahead;
lvd->lv_stripes = lv->stripes;
lvd->lv_size = lv->size;
lvd->lv_allocated_le = lv->le_count;

View File

@ -70,6 +70,8 @@ struct logical_volume {
char *name;
uint32_t status;
uint32_t read_ahead;
uint32_t stripes;
uint64_t size;
uint32_t le_count;