LVM2 ./WHATS_NEW lib/metadata/lv_manip.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2009-05-28 01:59:37
Modified files:
. : WHATS_NEW
lib/metadata : lv_manip.c
Log message:
When creating new LV, double-check that name is not already in use.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1131&r2=1.1132
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/lv_manip.c.diff?cvsroot=lvm2&r1=1.176&r2=1.177
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.48 - =============================== + When creating new LV, double-check that name is not already in use. Remove /dev/vgname/lvname symlink automatically if LV is no longer visible. Rename internal vorigin LV to match visible LV. Suppress 'removed' messages displayed when internal LVs are removed.
lib/metadata/lv_manip.c +4 -0
@@ -1844,6 +1844,10 @@log_error ("Failed to generate unique name for the new " "logical volume" );return NULL ; + }else if (find_lv_in_vg (vg, name)) { +log_error ("Unable to create LV %s in Volume Group %s: " +"name already in use." , name, vg->name); +return NULL ; }log_verbose ("Creating logical volume %s" , name);