1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-10-15 19:33:17 +03:00

lvmetad: Disable and warn when locking_type is 3.

This commit is contained in:
Petr Rockai
2012-10-25 14:30:03 +02:00
parent b248ba0a39
commit 2fdd0840d5
2 changed files with 25 additions and 1 deletions

View File

@@ -413,7 +413,12 @@ static int _process_config(struct cmd_context *cmd)
lvmetad_set_socket(lvmetad_socket);
cn = find_config_tree_node(cmd, "devices/global_filter");
lvmetad_set_token(cn ? cn->v : NULL);
lvmetad_set_active(find_config_tree_int(cmd, "global/use_lvmetad", 0));
if (find_config_tree_int(cmd, "global/locking_type", 1) != 3)
lvmetad_set_active(find_config_tree_int(cmd, "global/use_lvmetad", 0));
else {
log_warn("WARNING: use_lvmetad overriden to 0 due to locking_type 3");
lvmetad_set_active(0);
}
lvmetad_init(cmd);
return 1;