]> sourceware.org Git - lvm2.git/commit
vgchange -aay: improve unexpected command variations
authorDavid Teigland <teigland@redhat.com>
Mon, 8 Nov 2021 17:30:25 +0000 (11:30 -0600)
committerDavid Teigland <teigland@redhat.com>
Mon, 8 Nov 2021 21:19:25 +0000 (15:19 -0600)
commit024ce50f06feff2dae53dce83398911bef071a6e
tree2a41c769411e373d4629a065fe354f5df007aafd
parent14b68ea313865041433e18bac92a6dfcf6128b15
vgchange -aay: improve unexpected command variations

For completeness and consistency, adjust the behavior
for some variations of:

  vgchange -aay --autoactivation event [vgname]

The current standard use is with a VG name arg, and the
command is only called when all pvs_online files exist.
This is the optimal case, in which only pvs_online devs
are read.  This remains the same.

Clean up behaviors for some other unexpected uses of the
command:

. With no VG name arg, the command activates any VGs
  that are complete according to pvs_online.  If no
  pvs_online files exist, it does nothing.

. If a VG name is used but no PVs online files exist for
  the VG, or the PVs online files are incomplete, then
  consider there could be a problem with the pvs_online
  files, and fall back to a full label scan prior to
  attempting the activation.
lib/device/dev-cache.c
lib/device/online.c
lib/label/label.c
lib/label/label.h
test/shell/vgchange-pvs-online.sh
tools/vgchange.c
This page took 0.03993 seconds and 5 git commands to generate.