]> sourceware.org Git - lvm2.git/commit
vgcfgrestore: use lvmetad disabled state
authorDavid Teigland <teigland@redhat.com>
Fri, 17 Jun 2016 21:37:30 +0000 (16:37 -0500)
committerDavid Teigland <teigland@redhat.com>
Mon, 20 Jun 2016 16:19:49 +0000 (11:19 -0500)
commit6ae22125c62ddea4340916a5e255d55844bfd087
tree9d56fe794e1b306cc0a8fc60581bd2ddec3676fe
parentcae6591b9ddc5e94b64c542503d34448babf720f
vgcfgrestore: use lvmetad disabled state

Previously, vgcfgrestore would attempt to vg_remove the
existing VG from lvmetad and then vg_update to add the
restored VG.  But, if there was a failure in the command
or with vg_update, the lvmetad cache would be left incorrect.
Now, disable lvmetad before the restore begins, and then
rescan to populate lvmetad from disk after restore has
written the new VG to disk.
daemons/lvmetad/lvmetad-client.h
daemons/lvmetad/lvmetad-core.c
lib/cache/lvmetad.c
lib/format_text/archiver.c
lib/format_text/archiver.h
tools/vgcfgrestore.c
tools/vgconvert.c
This page took 0.03268 seconds and 5 git commands to generate.