]> sourceware.org Git - lvm2.git/commit
vg_write: optimize caching of precommitted VG
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 5 Mar 2021 21:12:58 +0000 (22:12 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 8 Mar 2021 14:30:18 +0000 (15:30 +0100)
commitbc0cb663043bb9c67151f88061ff22c53c6883ea
tree83c4169623997e81a0d6c7c4eb8fd874de0a448b
parenta125a3bb505cc2f0374715f850f4c1e02c7d4e3c
vg_write: optimize caching of precommitted VG

Every vg_write stores new 'metadata' into precommitted slot.
For this step we use 'serialized buffer' to ascii metadata.

Instead of recreating this buffer after whole 'vg_write()' we
use this buffer instantly for creating of precommitted VG.

This has also the advantage of catching any problems with
reparsing of ascii metadata back to VG early before any write.
lib/format_text/format-text.c
lib/metadata/metadata.c
This page took 0.035391 seconds and 5 git commands to generate.