LVM2/lib/metadata metadata.h thin_manip.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2011-10-22 16:44:23
Modified files:
lib/metadata : metadata.h thin_manip.c
Log message:
Recoded way to insert thin pool into vg
Code in _lv_insert_empty_sublvs was not able to provide proper initialization order for thin pool LV.
New function extend_pool() first adds metadata segment to pool LV which is still visible. Such LV is activate and cleared.
Then new meta LV is created and metadata segments are moved there. Now the preallocated pool data segment is attached to the pool LV and layer _tpool is created. Finaly segment is marked as thin_pool.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/metadata.h.diff?cvsroot=lvm2&r1=1.260&r2=1.261
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/thin_manip.c.diff?cvsroot=lvm2&r1=1.12&r2=1.13
lib/metadata/metadata.h +3 -0
@@ -69,6 +69,7 @@struct dm_config_tree ;struct metadata_area ; +struct alloc_handle ;/* Per-format per-metadata area operations */ struct metadata_area_ops {
@@ -461,6 +462,8 @@ struct logical_volume *lv, uint32_t delete_id, int read_only);int detach_pool_messages (struct lv_segment *seg); +int extend_pool (struct logical_volume *lv,const struct segment_type *segtype, +struct alloc_handle *ah);/* * Begin skeleton for external LVM library
lib/metadata/thin_manip.c +95 -0
104 lines not on this page · raw message