diff options
author | David Teigland <teigland@redhat.com> | 2021-07-15 16:33:50 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2021-11-04 10:58:16 -0500 |
commit | 726dd25969e9e6a3de285a22cea45e9f5f53520f (patch) | |
tree | a9e8c5301c897c6b30840c44e025d1d2cafdbbb5 /lib/config | |
parent | 6ea8d975b23758e6e099bf51cf7334f27f9fd096 (diff) | |
download | lvm2-726dd25969e9e6a3de285a22cea45e9f5f53520f.tar.gz |
add hints interface to the pvs_online file information
The information in /run/lvm/pvs_online/<pvid> files can
be used to build a list of devices for a given VG.
The pvscan -aay command has long used this information to
activate a VG while scanning only devices in that VG, which
is an important optimization for autoactivation.
This patch implements the same thing through the existing
device hints interface, so that the optimization can be
applied elsewhere. A future patch will take advantage of
this optimization in vgchange -aay, which is now used in
place of pvscan -aay for event activation.
Diffstat (limited to 'lib/config')
-rw-r--r-- | lib/config/defaults.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/config/defaults.h b/lib/config/defaults.h index 1b1568a7b..3308b1ea6 100644 --- a/lib/config/defaults.h +++ b/lib/config/defaults.h @@ -328,4 +328,8 @@ #define DEFAULT_WWIDS_FILE "/etc/multipath/wwids" +#define PVS_ONLINE_DIR DEFAULT_RUN_DIR "/pvs_online" +#define VGS_ONLINE_DIR DEFAULT_RUN_DIR "/vgs_online" +#define PVS_LOOKUP_DIR DEFAULT_RUN_DIR "/pvs_lookup" + #endif /* _LVM_DEFAULTS_H */ |