LVM2 ./WHATS_NEW lib/Makefile.in lib/activate/ ...
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: jbrassow at sourceware.org 2011-08-11 18:24:42
Modified files:
. : WHATS_NEW lib : Makefile.in lib/activate : activate.c activate.h lib/metadata : metadata-exported.h tools : lvconvert.c
Added files:
lib/metadata : raid_manip.c
test : t-lvcreate-raid.sh
Log message:
Add ability to down-convert RAID1 arrays.
Also, add some simple RAID tests to testsuite.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.2068&r2=1.2069
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/Makefile.in.diff?cvsroot=lvm2&r1=1.110&r2=1.111
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/activate/activate.c.diff?cvsroot=lvm2&r1=1.210&r2=1.211
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/activate/activate.h.diff?cvsroot=lvm2&r1=1.78&r2=1.79
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/raid_manip.c.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/metadata-exported.h.diff?cvsroot=lvm2&r1=1.197&r2=1.198
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-lvcreate-raid.sh.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvconvert.c.diff?cvsroot=lvm2&r1=1.167&r2=1.168
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.87 - =============================== + Add ability to down-convert RAID1 arrays. Update udev rules to skip DM flags decoding for removed devices. Add detect_internal_vg_cache_corruption to lvm.conf, disabled by default. Use memory pool locking to check for corruption of internal VG structs.
lib/Makefile.in +1 -0
@@ -85,6 +85,7 @@ metadata/pv.c \ metadata/pv_manip.c \ metadata/pv_map.c \ + metadata/raid_manip.c \ metadata/replicator_manip.c \ metadata/segtype.c \ metadata/snapshot_manip.c \
lib/activate/activate.c +5 -0
@@ -611,6 +611,11 @@return r; } +int lv_raid_percent (const struct logical_volume *lv,percent_t *percent) +{ +return lv_mirror_percent (lv->vg->cmd, lv,0 , percent,NULL ); +} +static int _lv_active (struct cmd_context *cmd,struct logical_volume *lv) {struct lvinfo info;
lib/activate/activate.h +1 -0
@@ -93,6 +93,7 @@int lv_snapshot_percent (const struct logical_volume *lv,percent_t *percent);int lv_mirror_percent (struct cmd_context *cmd,const struct logical_volume *lv,int wait,percent_t *percent,uint32_t *event_nr); +int lv_raid_percent (const struct logical_volume *lv,percent_t *percent);/* * Return number of LVs in the VG that are active.
/cvs/lvm2/LVM2/lib/metadata/raid_manip.c,v --> standard output revision 1.1
- renamed from lib/metadata/raid_manip.c +478 -0
478 lines not on this page · raw message
lib/metadata/metadata-exported.h +7 -0
@@ -737,6 +737,13 @@int lv_is_slog (const struct logical_volume *lv);struct logical_volume *first_replicator_dev (const struct logical_volume *lv);/* -- metadata/replicator_manip.c */ + +/* ++ metadata/raid_manip.c */ +uint32_t lv_raid_image_count (const struct logical_volume *lv); +int lv_raid_change_image_count (struct logical_volume *lv, +uint32_t new_count,struct dm_list *pvs); +/* -- metadata/raid_manip.c */ +struct cmd_vg *cmd_vg_add (struct dm_pool *mem,struct dm_list *cmd_vgs,const char *vg_name,const char *vgid,uint32_t flags);
/cvs/lvm2/LVM2/test/t-lvcreate-raid.sh,v --> standard output revision 1.1
- renamed from test/t-lvcreate-raid.sh +122 -0
122 lines not on this page · raw message
tools/lvconvert.c +75 -1
94 lines not on this page · raw message