public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/liblvm lvm.h lvm_lv.c lvm_pv.c lvm_vg.c
@ 2009-07-28  9:56 wysochanski
  0 siblings, 0 replies; only message in thread
From: wysochanski @ 2009-07-28  9:56 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	wysochanski@sourceware.org	2009-07-28 09:56:49

Modified files:
	liblvm         : lvm.h lvm_lv.c lvm_pv.c lvm_vg.c 

Log message:
	Use dm_malloc and dm_free in liblvm instead of malloc/free.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/liblvm/lvm.h.diff?cvsroot=lvm2&r1=1.35&r2=1.36
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/liblvm/lvm_lv.c.diff?cvsroot=lvm2&r1=1.9&r2=1.10
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/liblvm/lvm_pv.c.diff?cvsroot=lvm2&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/liblvm/lvm_vg.c.diff?cvsroot=lvm2&r1=1.20&r2=1.21

--- LVM2/liblvm/lvm.h	2009/07/28 09:16:18	1.35
+++ LVM2/liblvm/lvm.h	2009/07/28 09:56:48	1.36
@@ -407,8 +407,8 @@
 /**
  * Get the current name of a volume group.
  *
- * Memory is allocated using malloc() and caller must free the memory
- * using free().
+ * Memory is allocated using dm_malloc() and caller must free the memory
+ * using dm_free().
  *
  * \param   vg
  *          VG handle obtained from lvm_vg_create or lvm_vg_open.
@@ -419,8 +419,8 @@
 /**
  * Get the current uuid of a volume group.
  *
- * Memory is allocated using malloc() and caller must free the memory
- * using free().
+ * Memory is allocated using dm_malloc() and caller must free the memory
+ * using dm_free().
  *
  * \param   vg
  *          VG handle obtained from lvm_vg_create or lvm_vg_open.
@@ -557,8 +557,8 @@
 /**
  * Get the current name of a logical volume.
  *
- * Memory is allocated using malloc() and caller must free the memory
- * using free().
+ * Memory is allocated using dm_malloc() and caller must free the memory
+ * using dm_free().
  *
  * \param   lv
  *          Logical volume handle.
@@ -569,8 +569,8 @@
 /**
  * Get the current uuid of a logical volume.
  *
- * Memory is allocated using malloc() and caller must free the memory
- * using free().
+ * Memory is allocated using dm_malloc() and caller must free the memory
+ * using dm_free().
  *
  * \param   lv
  *          Logical volume handle.
@@ -638,8 +638,8 @@
 /**
  * Get the current uuid of a logical volume.
  *
- * Memory is allocated using malloc() and caller must free the memory
- * using free().
+ * Memory is allocated using dm_malloc() and caller must free the memory
+ * using dm_free().
  *
  * \param   pv
  *          Physical volume handle.
@@ -650,8 +650,8 @@
 /**
  * Get the current name of a logical volume.
  *
- * Memory is allocated using malloc() and caller must free the memory
- * using free().
+ * Memory is allocated using dm_malloc() and caller must free the memory
+ * using dm_free().
  *
  * \param   pv
  *          Physical volume handle.
--- LVM2/liblvm/lvm_lv.c	2009/07/27 21:03:15	1.9
+++ LVM2/liblvm/lvm_lv.c	2009/07/28 09:56:48	1.10
@@ -44,7 +44,7 @@
 {
 	char *name;
 
-	name = malloc(NAME_LEN + 1);
+	name = dm_malloc(NAME_LEN + 1);
 	strncpy(name, (const char *)lv->name, NAME_LEN);
 	name[NAME_LEN] = '\0';
 	return name;
--- LVM2/liblvm/lvm_pv.c	2009/07/27 21:03:15	1.4
+++ LVM2/liblvm/lvm_pv.c	2009/07/28 09:56:48	1.5
@@ -32,7 +32,7 @@
 {
 	char *name;
 
-	name = malloc(NAME_LEN + 1);
+	name = dm_malloc(NAME_LEN + 1);
 	strncpy(name, (const char *)pv_dev_name(pv), NAME_LEN);
 	name[NAME_LEN] = '\0';
 	return name;
--- LVM2/liblvm/lvm_vg.c	2009/07/27 21:03:15	1.20
+++ LVM2/liblvm/lvm_vg.c	2009/07/28 09:56:48	1.21
@@ -269,7 +269,7 @@
 {
 	char *name;
 
-	name = malloc(NAME_LEN + 1);
+	name = dm_malloc(NAME_LEN + 1);
 	strncpy(name, (const char *)vg->name, NAME_LEN);
 	name[NAME_LEN] = '\0';
 	return name;


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

only message in thread, other threads:[~2009-07-28  9:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-28  9:56 LVM2/liblvm lvm.h lvm_lv.c lvm_pv.c lvm_vg.c wysochanski

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).