mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-25 21:57:45 +03:00
lvmetad: refactor and document
update_metadata and pv_found update the cached metadata; these are both reworked to improve the code, organize it by each possible state and transition, make it much more clear what's changing, add more error checking and handling, and add comments. The state and content of the cache (hash tables) does not change (apart from some things that didn't work before), and the communication to/from commands does not change. The implementation and organization of the code making the state changes does change significantly. One detail related to the content of the cache does change: different hash tables do not reference the same memory any more; the target values in each hash table are allocated and freed individually.
This commit is contained in:
parent
4b47ee5296
commit
4e6377f5ba
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user