]> sourceware.org Git - lvm2.git/commit
devices: refresh device ids if the system changes 1018880611
authorDavid Teigland <teigland@redhat.com>
Wed, 13 Sep 2023 17:28:47 +0000 (12:28 -0500)
committerDavid Teigland <teigland@redhat.com>
Wed, 27 Sep 2023 20:22:11 +0000 (15:22 -0500)
commit88aa285a792637839c26cd78e1cedf4bd3273fd6
treedadeb2882e828f54bb525e013395c5541784f148
parentd06378373e32b159165e10347b243b37c4e472c1
devices: refresh device ids if the system changes

If the system changes, locate PVs that appear on different devices,
and update the device IDs in the devices file.  A system change is
detected by saving the DMI product_uuid or hostname in the devices
file, and comparing it to the current system value.  If a root PV
is restored or copied to a new system with different devices, then
the product_uuid or hostname should change, and trigger lvm to
locate PVIDs from system.devices on new devices.
14 files changed:
lib/cache/lvmcache.c
lib/commands/toolcontext.c
lib/commands/toolcontext.h
lib/config/config_settings.h
lib/device/device_id.c
lib/device/device_id.h
lib/label/label.c
lib/report/report.c
man/lvmdevices.8_des
test/shell/devicesfile-devname.sh
test/shell/devicesfile-refresh.sh [new file with mode: 0644]
test/shell/udev-pvscan-vgchange.sh
tools/lvmdevices.c
tools/pvscan.c
This page took 0.03932 seconds and 5 git commands to generate.