1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/lib/cache
Peter Rajnoha 8d5cff5b9b lv/vgchange: do not try to connect to lvmetad if socket absent and --sysinit -aay used
If using lv/vgchange --sysinit -aay and lvmetad is enabled, we'd like to
avoid the direct activation and rely on autoactivation instead so
it fits system initialization scripts.

But if we're calling lv/vgchange --sysinit -aay too early when even
lvmetad service is not started yet, we just need to do the direct
activation instead without printing any error messages (while
trying to connect to lvmetad and not finding its socket).

This patch adds two helper functions - "lvmetad_socket_present" and
"lvmetad_used" which can be used to check for this condition properly
and avoid these lvmetad connections when the socket is not present
(and hence lvmetad is not yet running).
2013-11-26 14:51:23 +01:00
..
lvmcache.c labeller: Make the use of "private" as "fmt" explicit. 2013-11-17 21:41:27 +01:00
lvmcache.h refactor: make device type recognition code common for general use 2013-06-12 12:08:56 +02:00
lvmetad.c lv/vgchange: do not try to connect to lvmetad if socket absent and --sysinit -aay used 2013-11-26 14:51:23 +01:00
lvmetad.h lv/vgchange: do not try to connect to lvmetad if socket absent and --sysinit -aay used 2013-11-26 14:51:23 +01:00