LVM2 ./WHATS_NEW_DM libdm/libdevmapper.h libdm ...
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
WHATS_NEW_DM +1 -0
@@ -1,5 +1,6 @@ Version 1.02.33 - =============================== + Make mempool optional in dm_split_lvm_name(). Version 1.02.32 - 21st May 2009 ===============================
libdm/libdevmapper.h +2 -0
@@ -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);
libdm/libdm-string.c +1 -1
@@ -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)));