public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
From: zkabelac@sourceware.org
To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org
Subject: LVM2 lib/metadata/lv_manip.c lib/thin/thin.c t ...
Date: Wed, 21 Dec 2011 12:54:00 -0000	[thread overview]
Message-ID: <20111221125420.13645.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac@sourceware.org	2011-12-21 12:54:19

Modified files:
	lib/metadata   : lv_manip.c 
	lib/thin       : thin.c 
	tools          : lvcreate.c 

Log message:
	Thin rename internal thin pool segment
	
	Use matching name as kernel target - useful when function like
	_percent is using this for validation.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/lv_manip.c.diff?cvsroot=lvm2&r1=1.339&r2=1.340
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/thin/thin.c.diff?cvsroot=lvm2&r1=1.34&r2=1.35
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvcreate.c.diff?cvsroot=lvm2&r1=1.250&r2=1.251

--- LVM2/lib/metadata/lv_manip.c	2011/12/20 00:02:18	1.339
+++ LVM2/lib/metadata/lv_manip.c	2011/12/21 12:54:19	1.340
@@ -4450,7 +4450,7 @@
 	/* Create thin pool first if necessary */
 	if (lp->create_thin_pool) {
 		if (!seg_is_thin_pool(lp) &&
-		    !(lp->segtype = get_segtype_from_string(vg->cmd, "thin_pool")))
+		    !(lp->segtype = get_segtype_from_string(vg->cmd, "thin-pool")))
 			return_0;
 
 		if (!(lv = _lv_create_an_lv(vg, lp, lp->pool)))
--- LVM2/lib/thin/thin.c	2011/11/28 20:37:52	1.34
+++ LVM2/lib/thin/thin.c	2011/12/21 12:54:19	1.35
@@ -474,7 +474,7 @@
 		const char name[16];
 		uint32_t flags;
 	} reg_segtypes[] = {
-		{ &_thin_pool_ops, "thin_pool", SEG_THIN_POOL },
+		{ &_thin_pool_ops, "thin-pool", SEG_THIN_POOL },
 		/* FIXME Maybe use SEG_THIN_VOLUME instead of SEG_VIRTUAL */
 		{ &_thin_ops, "thin", SEG_THIN_VOLUME | SEG_VIRTUAL }
 	};
--- LVM2/tools/lvcreate.c	2011/11/10 12:43:05	1.250
+++ LVM2/tools/lvcreate.c	2011/12/21 12:54:19	1.251
@@ -371,7 +371,7 @@
 		}
 	} else {
 		/* No virtual size given, so no thin LV to create. */
-		if (seg_is_thin_volume(lp) && !(lp->segtype = get_segtype_from_string(cmd, "thin_pool")))
+		if (seg_is_thin_volume(lp) && !(lp->segtype = get_segtype_from_string(cmd, "thin-pool")))
 			return_0;
 
 		lp->thin = 0;


                 reply	other threads:[~2011-12-21 12:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111221125420.13645.qmail@sourceware.org \
    --to=zkabelac@sourceware.org \
    --cc=lvm-devel@redhat.com \
    --cc=lvm2-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).