]> sourceware.org Git - lvm2.git/commit
metadata: Use flags to control warnings.
authorDavid Teigland <teigland@redhat.com>
Tue, 7 Oct 2014 00:04:09 +0000 (01:04 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 7 Oct 2014 00:15:43 +0000 (01:15 +0100)
commit8dc5f42254b319430d02e2d0ca4cffd36b2cbaca
tree356bd3034ea9192cc2950592298417aabba738cf
parente458fc9a6a3a82231367450b5f54f3c12700cd20
metadata: Use flags to control warnings.

The warnings arg was used to enable logging of warnings
when reading a PV.  This arg is turned into a set of flags
with the WARN_PV_READ flag matching the existing behavior.

A new flag WARN_INCONSISTENT is added that will cause
vg_read_internal() to log the "VG is not consistent"
warning so the various callers do not need to log
this warning themselves.

A new vg_read flag READ_WARN_INCONSISTENT is used from
reporting to enable the WARN_INCONSISTENT flag in
vg_read_internal.

[Committed by agk with cosmetic changes and tweaks.]
daemons/clvmd/lvm-functions.c
lib/format_text/import.c
lib/metadata/metadata-exported.h
lib/metadata/metadata.c
tools/toollib.c
This page took 0.031177 seconds and 5 git commands to generate.