Skip to contentSkip to conversation

LVM2 ./WHATS_NEW_DM libdm/libdm-report.c

PATCH [email protected] 1 participant 1 message Nov 1, 2010

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: prajnoha at sourceware.org 2010-11-01 13:31:55

Modified files:
. : WHATS_NEW_DM
libdm : libdm-report.c

Log message:
Allocate buffer for reporting functions dynamically to support long outputs. Fix memory leak of field_id in _output_field function.

There's been a patch added recently to use dynamic allocation for metadata tags buffer to remove the 4k limit (for writing metadata out). However, when using reporting commands like vgs and lvs, we still need to fix libdm reporting functions themselves to support such long outputs. So the buffer used in those reporting functions is dynamic now.

The patch also includes a fix for field_id memory leak which was found in the _output_field function.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW_DM.diff?cvsroot=lvm2&r1=1.420&r2=1.421
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdm-report.c.diff?cvsroot=lvm2&r1=1.37&r2=1.38

WHATS_NEW_DM +2 -0
@@ -1,5 +1,7 @@
 Version 1.02.57
 ===================================
+  Fix memory leak of field_id in _output_field function.
+  Allocate buffer for reporting functions dynamically to support long outputs.
 
 Version 1.02.56 - 25th October 2010
 ===================================
libdm/libdm-report.c +42 -10

124 lines not on this page · raw message