diff --git a/lib/format1/import-export.c b/lib/format1/import-export.c index 9c92403b0..c9d3ded3b 100644 --- a/lib/format1/import-export.c +++ b/lib/format1/import-export.c @@ -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; diff --git a/lib/metadata/metadata.h b/lib/metadata/metadata.h index fcba4de7a..002c5a655 100644 --- a/lib/metadata/metadata.h +++ b/lib/metadata/metadata.h @@ -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;