]> sourceware.org Git - lvm2.git/commit
lvmetad: rework command connection setup and checking
authorDavid Teigland <teigland@redhat.com>
Wed, 13 Apr 2016 22:00:01 +0000 (17:00 -0500)
committerDavid Teigland <teigland@redhat.com>
Tue, 19 Apr 2016 19:00:02 +0000 (14:00 -0500)
commit5e9e43074a6c5e251ee44768421879b03ad2e530
tree632250a3b826e2bcd5b4d3246dfcc779cfd09db6
parent593900b795e194608e9e2088aa8f75f4f42484c1
lvmetad: rework command connection setup and checking

The lvmetad connection is created within the
init_connections() path during command startup,
rather than via the old lvmetad_active() check.

The old lvmetad_active() checks are replaced
with lvmetad_used() which is a simple check that
tests if the command is using/connected to lvmetad.

The old lvmetad_set_active(cmd, 0) calls, which
stopped the command from using lvmetad (to revert to
disk scanning), are replaced with lvmetad_make_unused(cmd).
18 files changed:
lib/cache/lvmcache.c
lib/cache/lvmetad.c
lib/cache/lvmetad.h
lib/commands/toolcontext.c
lib/format_text/archiver.c
lib/format_text/format-text.c
lib/format_text/import_vsn1.c
lib/metadata/metadata.c
tools/lvchange.c
tools/lvmcmdline.c
tools/lvscan.c
tools/pvdisplay.c
tools/pvscan.c
tools/reporter.c
tools/vgchange.c
tools/vgck.c
tools/vgimport.c
tools/vgscan.c
This page took 0.038444 seconds and 5 git commands to generate.