LVM2 lib/metadata/metadata-exported.h lib/meta ...
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at sourceware.org 2009-07-14 02:15:21
Modified files:
lib/metadata : metadata-exported.h metadata.c
tools : vgsplit.c
Log message:
Refactor vgsplit - move move_pvs_used_by_lv and move_pv inside library.
In the future we may export these functions or something like them in liblvm For now this helps in cleaning up the checks for RESIZEABLE since we can use the internal library function vg_bad_status_bits.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/metadata-exported.h.diff?cvsroot=lvm2&r1=1.90&r2=1.91
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/metadata.c.diff?cvsroot=lvm2&r1=1.247&r2=1.248
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/vgsplit.c.diff?cvsroot=lvm2&r1=1.83&r2=1.84
lib/metadata/metadata-exported.h +5 -0
@@ -375,6 +375,11 @@int pv_write (struct cmd_context *cmd,struct physical_volume *pv,struct dm_list *mdas,int64_t label_sector);int is_pv (pv_t *pv); +int move_pv (struct volume_group *vg_from,struct volume_group *vg_to, +const char *pv_name); +int move_pvs_used_by_lv (struct volume_group *vg_from, +struct volume_group *vg_to, +const char *lv_name);int is_orphan_vg (const char *vg_name);int is_orphan (const pv_t *pv); int vgs_are_compatible(struct cmd_context *cmd,
lib/metadata/metadata.c +66 -0
72 lines not on this page · raw message
tools/vgsplit.c +2 -68
86 lines not on this page · raw message