Skip to contentSkip to conversation

LVM2 ./WHATS_NEW ./WHATS_NEW_DM lib/metadata/l ...

PATCH [email protected] 1 participant 1 message Jan 12, 2010

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2010-01-12 14:00:52

Modified files:

	.              : WHATS_NEW WHATS_NEW_DM 
	lib/metadata   : lv_manip.c mirror.c 
	man            : lvconvert.8.in lvcreate.8.in 
	tools          : commands.h lvconvert.c lvcreate.c 

Log message:
Revert so-called "redundant" log until after next release.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1379&r2=1.1380
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW_DM.diff?cvsroot=lvm2&r1=1.331&r2=1.332
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/lv_manip.c.diff?cvsroot=lvm2&r1=1.195&r2=1.196
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/mirror.c.diff?cvsroot=lvm2&r1=1.106&r2=1.107
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/man/lvconvert.8.in.diff?cvsroot=lvm2&r1=1.11&r2=1.12
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/man/lvcreate.8.in.diff?cvsroot=lvm2&r1=1.13&r2=1.14
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/commands.h.diff?cvsroot=lvm2&r1=1.138&r2=1.139
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvconvert.c.diff?cvsroot=lvm2&r1=1.108&r2=1.109
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvcreate.c.diff?cvsroot=lvm2&r1=1.213&r2=1.214

WHATS_NEW +0 -1
@@ -5,7 +5,6 @@
   Define {DM, LVM}_UDEV_DISABLE_CHECKING=1 environment variables during tests.
   Enable udev_sync and udev_rules in lvm.conf by default while running tests.
   If LVM_UDEV_DISABLE_CHECKING in set in environment, disable udev warnings.
-Add redundant mirror log option.  FIXME - rename to 'duplicated' or similar?
   Add --splitmirrors to lvconvert to split off part of a mirror.
   Change background polldaemon's process name to "(lvm2)".
   Allow vgremove to remove a VG with PVs missing after a prompt.
WHATS_NEW_DM +1 -1
@@ -1,6 +1,6 @@
 Version 1.02.41 -
 ====================================
-  If DM_UDEV_DISABLE_CHECKING in set in environment, disable udev warnings.
+  If DM_UDEV_DISABLE_CHECKING is set in environment, disable udev warnings.
   Add dm_tree_add_dev_with_udev_flags to provide wider support for udev flags.
   Add --noudevrules option for dmsetup to disable /dev node management by udev.
   Fix 'dmsetup info -c -o all' to show all fields.
lib/metadata/lv_manip.c +42 -93

282 lines not on this page · raw message

lib/metadata/mirror.c +41 -51

146 lines not on this page · raw message

man/lvconvert.8.in +1 -2
@@ -3,7 +3,7 @@
 lvconvert \- convert a logical volume from linear to mirror or snapshot
 .SH SYNOPSIS
 .B lvconvert
-\-m|\-\-mirrors Mirrors [\-\-mirrorlog {disk|core|redundant}] [\-\-corelog] [\-R|\-\-regionsize MirrorLogRegionSize]
+\-m|\-\-mirrors Mirrors [\-\-mirrorlog {disk|core}] [\-\-corelog] [\-R|\-\-regionsize MirrorLogRegionSize]
 [\-A|\-\-alloc AllocationPolicy]
 [\-b|\-\-background] [\-f|\-\-force] [\-i|\-\-interval Seconds]
 [\-h|\-?|\-\-help]
@@ -71,7 +71,6 @@
 Core may be useful for short-lived mirrors: It means the mirror is
 regenerated by copying the data from the first device again every
 time the device is activated - perhaps, for example, after every reboot.
-Using "redundant" will create a persistent log that is itself mirrored.
 .TP
 .I \-\-corelog
 The optional argument "--corelog" is the same as specifying "--mirrorlog core".
man/lvcreate.8.in +3 -4
@@ -11,7 +11,7 @@
 {\-l|\-\-extents LogicalExtentsNumber[%{VG|PVS|FREE}] |
  \-L|\-\-size LogicalVolumeSize[bBsSkKmMgGtTpPeE]}
 [\-M|\-\-persistent y|n] [\-\-minor minor]
-[\-m|\-\-mirrors Mirrors [\-\-nosync] [\-\-mirrorlog {disk|core|redundant}] [\-\-corelog]
+[\-m|\-\-mirrors Mirrors [\-\-nosync] [\-\-mirrorlog {disk|core}] [\-\-corelog]
 [\-R|\-\-regionsize MirrorLogRegionSize]]
 [\-n|\-\-name LogicalVolumeName]
 [\-p|\-\-permission r|rw] [\-r|\-\-readahead ReadAheadSectors|auto|none]
@@ -107,10 +107,9 @@
 The optional argument --mirrorlog specifies the type of log to be used.
 The default is disk, which is persistent and requires
 a small amount of storage space, usually on a separate device from the
-data being mirrored.  Using core means the mirror is regenerated
+data being mirrored. Using core means the mirror is regenerated
 by copying the data from the first device again each time the
-device is activated, for example, after every reboot.  Using "redundant"
-will create a persistent log that is itself mirrored.
+device is activated, for example, after every reboot.
 
 The optional argument --corelog is equivalent to --mirrorlog core.
 
tools/commands.h +2 -2
@@ -96,7 +96,7 @@
    "Change logical volume layout",
    0,
    "lvconvert "
-   "[-m|--mirrors Mirrors [{--mirrorlog {disk|core|redundant}|--corelog}]]\n"
+   "[-m|--mirrors Mirrors [{--mirrorlog {disk|core}|--corelog}]]\n"
    "\t[--repair [--use-policies]]\n"
    "\t[-R|--regionsize MirrorLogRegionSize]\n"
    "\t[--alloc AllocationPolicy]\n"
@@ -145,7 +145,7 @@
    "\t{-l|--extents LogicalExtentsNumber |\n"
    "\t -L|--size LogicalVolumeSize[bBsSkKmMgGtTpPeE]}\n"
    "\t[-M|--persistent {y|n}] [--major major] [--minor minor]\n"
-   "\t[-m|--mirrors Mirrors [--nosync] [{--mirrorlog {disk|core|redundant}|--corelog}]]\n"
+   "\t[-m|--mirrors Mirrors [--nosync] [{--mirrorlog {disk|core}|--corelog}]]\n"
    "\t[-n|--name LogicalVolumeName]\n"
    "\t[--noudevsync]\n"
    "\t[-p|--permission {r|rw}]\n"
tools/lvconvert.c +2 -4
@@ -692,7 +692,7 @@
 		if (!(failed_pvs = _failed_pv_list(lv->vg)))
 			return_0;
 		lp->pvh = lp->failed_pvs = failed_pvs;
-		log_lv=first_seg(lv)->log_lv;
+		log_lv = first_seg(lv)->log_lv;
 		if (!log_lv || log_lv->status & PARTIAL_LV) {
 			failed_log = 1;
 			log_count = 0;
@@ -722,9 +722,7 @@
 			return 0;
 		}
 
-		if (!strcmp("redundant", mirrorlog))
-			log_count = 2;
-		else if (!strcmp("disk", mirrorlog))
+		if (!strcmp("disk", mirrorlog))
 			log_count = 1;
 		else if (!strcmp("core", mirrorlog))
 			log_count = 0;
tools/lvcreate.c +9 -19
@@ -322,29 +322,19 @@
 {
 	int region_size;
 	const char *mirrorlog;
-
-	/*
-	 * This param used to be 'corelog' and was initialized to '0'.
-	 * We initially set to '1' here so as not to screw the logic.
-	 */
-	lp->log_count = 1;
-	if (arg_count(cmd, corelog_ARG))
-		lp->log_count = 0;
+	int corelog = arg_count(cmd, corelog_ARG);
 
 	mirrorlog = arg_str_value(cmd, mirrorlog_ARG,
-				  !lp->log_count ? "core" : DEFAULT_MIRRORLOG);
+				  corelog ? "core" : DEFAULT_MIRRORLOG);
 
-	if (strcmp("core", mirrorlog) && !lp->log_count) {
-		log_error("--mirrorlog disk and --corelog "
-			  "are incompatible");
-		return 0;
-	}
-
-	if (!strcmp("redundant", mirrorlog))
-		lp->log_count = 2;
-	else if (!strcmp("disk", mirrorlog))
+	if (!strcmp("disk", mirrorlog)) {
+		if (corelog) {
+			log_error("--mirrorlog disk and --corelog "
+				  "are incompatible");
+			return 0;
+		}
 		lp->log_count = 1;
-	else if (!strcmp("core", mirrorlog))
+	} else if (!strcmp("core", mirrorlog))
 		lp->log_count = 0;
 	else {
 		log_error("Unknown mirrorlog type: %s", mirrorlog);