]> sourceware.org Git - lvm2.git/commit
vg_read: sometimes ignore read errors
authorDavid Teigland <teigland@redhat.com>
Thu, 22 Oct 2015 19:56:22 +0000 (14:56 -0500)
committerDavid Teigland <teigland@redhat.com>
Fri, 23 Oct 2015 15:12:34 +0000 (10:12 -0500)
commit1a74171ca5682a684d0e05c6090c3d33cab8795b
tree1d85fa310536585ea6735d6e3cbd8ef1546a7cda
parent51735f09f79794d6609913b4c117f1a4a0e491fe
vg_read: sometimes ignore read errors

Running "vgremove -f VG & pvs" results in the pvs
command reporting that the VG is not found or is
inconsistent.  If the VG is gone or being removed,
the pvs command should just skip it and not print
errors about it.

"Not found" is because the pvs command created the
list of VGs to process, including VG, then vgremove
removed the VG, then the pvs command came to to read
the VG to process it and did not find it.

An "inconsistent" error could be reported if vgremove
had only partially completed removing VG when pvs did
vg_read on the VG to process it, causing pvs to find
the VG in a partially-removed state.

This fix adds a flag that pvs uses to ignore a VG
that can't be read or is inconsistent.
lib/metadata/metadata-exported.h
lib/metadata/metadata.c
tools/toollib.c
This page took 0.083599 seconds and 5 git commands to generate.