All of lore.kernel.org
 help / color / mirror / Atom feed
From: agk@sourceware.org <agk@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2 ./WHATS_NEW_DM libdm/libdevmapper.h libdm ...
Date: 3 Jun 2009 11:40:24 -0000	[thread overview]
Message-ID: <20090603114024.18257.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	agk at sourceware.org	2009-06-03 11:40:23

Modified files:
	.              : WHATS_NEW_DM 
	libdm          : libdevmapper.h libdm-string.c 

Log message:
	Make mempool optional in dm_split_lvm_name()

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW_DM.diff?cvsroot=lvm2&r1=1.269&r2=1.270
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdevmapper.h.diff?cvsroot=lvm2&r1=1.87&r2=1.88
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdm-string.c.diff?cvsroot=lvm2&r1=1.10&r2=1.11

--- LVM2/WHATS_NEW_DM	2009/05/22 15:23:11	1.269
+++ LVM2/WHATS_NEW_DM	2009/06/03 11:40:23	1.270
@@ -1,5 +1,6 @@
 Version 1.02.33 - 
 ===============================
+  Make mempool optional in dm_split_lvm_name().
 
 Version 1.02.32 - 21st May 2009
 ===============================
--- LVM2/libdm/libdevmapper.h	2009/05/20 09:52:37	1.87
+++ LVM2/libdm/libdevmapper.h	2009/06/03 11:40:23	1.88
@@ -819,6 +819,8 @@
 /*
  * Break up the name of a mapped device into its constituent
  * Volume Group, Logical Volume and Layer (if present).
+ * If mem is supplied, the result is allocated from the mempool.
+ * Otherwise the strings are changed in situ.
  */
 int dm_split_lvm_name(struct dm_pool *mem, const char *dmname,
 		      char **vgname, char **lvname, char **layer);
--- LVM2/libdm/libdm-string.c	2008/11/03 18:59:59	1.10
+++ LVM2/libdm/libdm-string.c	2009/06/03 11:40:23	1.11
@@ -93,7 +93,7 @@
 int dm_split_lvm_name(struct dm_pool *mem, const char *dmname,
 		      char **vgname, char **lvname, char **layer)
 {
-	if (!(*vgname = dm_pool_strdup(mem, dmname)))
+	if (mem && !(*vgname = dm_pool_strdup(mem, dmname)))
 		return 0;
 
 	_unquote(*layer = _unquote(*lvname = _unquote(*vgname)));



             reply	other threads:[~2009-06-03 11:40 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-03 11:40 agk [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-10-22 12:55 LVM2 ./WHATS_NEW_DM libdm/libdevmapper.h libdm prajnoha
2009-11-13 12:43 prajnoha
2010-04-28 13:37 prajnoha
2010-10-15  1:10 agk
2010-10-25 13:13 zkabelac
2011-01-04 14:43 prajnoha
2011-02-04 16:08 mbroz
2011-02-18 14:38 zkabelac
2011-03-10 12:48 zkabelac
2011-08-19 16:26 agk
2011-09-22 17:09 prajnoha
2011-09-22 17:17 prajnoha
2011-09-22 17:23 prajnoha
2011-09-22 17:36 prajnoha
2011-09-29  8:53 zkabelac
2011-12-21 12:47 zkabelac
2012-01-11 12:34 prajnoha
2012-02-15 11:27 prajnoha
2012-02-15 11:39 prajnoha
2012-02-15 12:23 prajnoha
2012-02-23 22:45 zkabelac
2012-03-02 17:31 zkabelac

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=20090603114024.18257.qmail@sourceware.org \
    --to=agk@sourceware.org \
    --cc=lvm-devel@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.