]> sourceware.org Git - lvm2.git/commit
lvmetad: Fix autoactivation for MDA-less PVs.
authorPetr Rockai <prockai@redhat.com>
Wed, 12 Dec 2012 11:51:28 +0000 (12:51 +0100)
committerPetr Rockai <prockai@redhat.com>
Wed, 12 Dec 2012 12:19:04 +0000 (13:19 +0100)
commitf14f2d4378c066e50e2420e30407c8673cc7112a
tree0b16d9db88ddb91bf82ca9484ebbccd0fd4c703b
parentcad22be3942809bac979d42195ea5a861a91a71f
lvmetad: Fix autoactivation for MDA-less PVs.

Calling pvscan --cache with -aay on a PV without an MDA would spuriously fail
with an internal error, because of an incorrect assumption that a parsed VG
structure was always available. This is not true and the autoactivation handler
needs to call vg_read to obtain metadata in cases where the PV had no MDAs to
parse. Therefore, we pass vgid into the handler instead of the (possibly NULL)
VG coming from the PV's MDA.
lib/cache/lvmetad.c
lib/cache/lvmetad.h
test/shell/lvmetad-pvscan-nomda.sh [new file with mode: 0644]
tools/pvscan.c
This page took 0.037568 seconds and 5 git commands to generate.