mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
d992bbbaa3
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. |
||
---|---|---|
.. | ||
lvmcache.c | ||
lvmcache.h |