1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/daemons
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
..
clvmd corosync: fix some gcc warnings 2013-11-06 14:55:18 +01:00
cmirrord cmirrord: Prevent secondary checkpoints from corrupting bitmaps 2013-08-20 13:21:09 -05:00
dmeventd dmeventd: drop duplicated code 2013-11-22 21:00:55 +01:00
lvmetad lv/vgchange: do not try to connect to lvmetad if socket absent and --sysinit -aay used 2013-11-26 14:51:23 +01:00
Makefile.in Reflect new file locations, include file updates etc. 2012-02-28 18:35:04 +00:00