public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2 ./WHATS_NEW test/t-snapshot-merge.sh tool ...
@ 2010-08-03 20:22 snitzer
  0 siblings, 0 replies; only message in thread
From: snitzer @ 2010-08-03 20:22 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	snitzer@sourceware.org	2010-08-03 20:22:32

Modified files:
	.              : WHATS_NEW 
	test           : t-snapshot-merge.sh 
	tools          : lvconvert.c 

Log message:
	Require logical volume(s) to be explicitly named for lvconvert --merge.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1694&r2=1.1695
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-snapshot-merge.sh.diff?cvsroot=lvm2&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvconvert.c.diff?cvsroot=lvm2&r1=1.143&r2=1.144

--- LVM2/WHATS_NEW	2010/08/03 18:19:43	1.1694
+++ LVM2/WHATS_NEW	2010/08/03 20:22:31	1.1695
@@ -1,5 +1,6 @@
 Version 2.02.73 - 
 ================================
+  Require logical volume(s) to be explicitly named for lvconvert --merge.
   Avoid changing aligned pe_start as a side-effect of very verbose logging.
   Fix 'void*' arithmetic warnings in dbg_malloc.c.
   Fix 'void*' arithmetic warning in some functions from libdm-iface.c.
--- LVM2/test/t-snapshot-merge.sh	2010/04/23 19:27:11	1.6
+++ LVM2/test/t-snapshot-merge.sh	2010/08/03 20:22:31	1.7
@@ -49,6 +49,8 @@
 # now that snapshot LV is created: test if snapshot-merge target is available
 $(dmsetup targets | grep -q snapshot-merge) || exit 200
 lvs -a
+# make sure lvconvert --merge requires explicit LV listing
+not lvconvert --merge 2>err
 lvconvert --merge $vg/$(snap_lv_name_ $lv1)
 lvremove -f $vg/$lv1
 
--- LVM2/tools/lvconvert.c	2010/08/02 21:07:41	1.143
+++ LVM2/tools/lvconvert.c	2010/08/03 20:22:31	1.144
@@ -1738,9 +1738,14 @@
 		return EINVALID_CMD_LINE;
 	}
 
-	if (lp.merge)
+	if (lp.merge) {
+		if (!argc) {
+			log_error("Please provide logical volume path");
+			return EINVALID_CMD_LINE;
+		}
 		return process_each_lv(cmd, argc, argv, READ_FOR_UPDATE, &lp,
 				       &lvconvert_merge_single);
+	}
 
 	return lvconvert_single(cmd, &lp);
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-03 20:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-03 20:22 LVM2 ./WHATS_NEW test/t-snapshot-merge.sh tool snitzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).