1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00
Zdenek Kabelac d992bbbaa3 Keep the cache content when the exported vg buffer is matching
Instead of regenerating config tree and parsing same data again,
check whether export_vg_to_buffer does not produce same string as
the one already cached - in this case keep it, otherwise throw cached
content away.

For the code simplicity calling _free_cached_vgmetadata() with
vgmetadata == NULL as the function handles this itself.

Note: sometimes export_vg_to_buffer() generates almost the same data
with just different time stamp, but for the patch simplicity,
data are reparsed in this case.

This patch currently helps for vgrefresh.
2011-03-30 13:14:34 +00:00
..
2011-03-10 14:51:35 +00:00
2010-12-20 13:19:13 +00:00
2011-03-29 20:19:03 +00:00
2011-02-18 14:47:28 +00:00
2011-03-30 12:30:39 +00:00
2011-03-05 12:14:00 +00:00
2011-02-18 14:47:28 +00:00