mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-21 22:04:19 +03:00
pvscan: don't print warning about lvmlockd not running
pvscan --cache ignores shared VGs, so it doesn't need to consider lvmlockd, and shouldn't include a warning about it.
This commit is contained in:
parent
0ba316f102
commit
f58a70c168
@ -2714,6 +2714,13 @@ static int _init_lvmlockd(struct cmd_context *cmd)
|
||||
const char *lvmlockd_socket;
|
||||
int use_lvmlockd = find_config_tree_bool(cmd, global_use_lvmlockd_CFG, NULL);
|
||||
|
||||
if (cmd->command->command_enum == pvscan_cache_CMD) {
|
||||
/* pvscan cache ignores shared vgs, it only activates local vgs. */
|
||||
if (use_lvmlockd)
|
||||
log_debug("Ignore lvmlockd for pvscan cache.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Think about when/how to enable hints with lvmlockd.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user