]> sourceware.org Git - lvm2.git/commit
md component detection changes
authorDavid Teigland <teigland@redhat.com>
Fri, 5 Feb 2021 22:16:03 +0000 (16:16 -0600)
committerDavid Teigland <teigland@redhat.com>
Fri, 5 Feb 2021 22:23:51 +0000 (16:23 -0600)
commit87ee401eea3c3c3958ec5cda6e5c246b80503b8c
treee74c63b51fab4f06ab77ed7712eea75f568bbe82
parent67d8fb1e83002f702f9c995ec96ffc723ea0d6ce
md component detection changes

Move extra md component detection into the label scan phase.
It had been in set_pv_devices which was deep within the vg_read
phase, which wasn't a good place (better to detect that earlier.)
Now that pv metadata info is available in the scan phase, the pv
details (size and device_hint) can be used for extra md checking.

Use the device_hint from the pv metadata to trigger a full md
component check if the device_hint begins with /dev/md.

Stop triggering full md component checks based on missing
udev info for a dev.

Changes to tests to reflect that the code is now detecting
md components in some test case that it wasn't before.
lib/cache/lvmcache.c
lib/cache/lvmcache.h
lib/format_text/archiver.c
lib/format_text/import.c
lib/label/label.c
lib/metadata/metadata.c
lib/metadata/metadata.h
test/shell/duplicate-pvs-md1.sh
tools/pvscan.c
This page took 0.041366 seconds and 5 git commands to generate.