]> sourceware.org Git - lvm2.git/commit
Fix reading of released memory
authorZdenek Kabelac <zkabelac@redhat.com>
Sat, 5 Mar 2011 12:14:00 +0000 (12:14 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Sat, 5 Mar 2011 12:14:00 +0000 (12:14 +0000)
commit68a58ad799ffe5c0bf6465c025dcb180a3b94003
tree3be0dfc50b70bb4050a9089584ea319266de8222
parentddb128b0393600b8b3af221a9a1bcf423fb81072
Fix reading of released memory

lvseg_segtype_dup used memory pool vg memory pool for strind duplication.
However this one gets released before reporting happens so the command like:

pvs -o segtype

prints data from already released memory pool. Thanks to the fact there
is not much allocation happing after the VG is released, the memory
stays unmodified and correct result is printed.

Fix adds support for mempool passed parameter (like other similar
query commands) and uses dm_report memory pool for string duplication.
WHATS_NEW
lib/metadata/lv.c
lib/metadata/lv.h
lib/report/properties.c
lib/report/report.c
This page took 0.033868 seconds and 5 git commands to generate.