mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Fall back to internal locking if external locking lib is missing or fails.
This commit is contained in:
parent
a590f3b6a3
commit
04dabc1562
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.12 -
|
Version 2.02.12 -
|
||||||
===================================
|
===================================
|
||||||
|
Fall back to internal locking if external locking lib is missing or fails.
|
||||||
Retain activation state after changing LV minor number with --force.
|
Retain activation state after changing LV minor number with --force.
|
||||||
Propagate clustered flag in vgsplit and require resizeable flag.
|
Propagate clustered flag in vgsplit and require resizeable flag.
|
||||||
|
|
||||||
|
@ -144,18 +144,18 @@ int init_locking(int type, struct cmd_context *cmd)
|
|||||||
case 2:
|
case 2:
|
||||||
if (!cmd->is_static) {
|
if (!cmd->is_static) {
|
||||||
log_very_verbose("External locking selected.");
|
log_very_verbose("External locking selected.");
|
||||||
if (!init_external_locking(&_locking, cmd))
|
if (init_external_locking(&_locking, cmd))
|
||||||
break;
|
return 1;
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
if (!find_config_tree_int(cmd, "locking/fallback_to_clustered_locking",
|
if (!find_config_tree_int(cmd, "locking/fallback_to_clustered_locking",
|
||||||
DEFAULT_FALLBACK_TO_CLUSTERED_LOCKING))
|
DEFAULT_FALLBACK_TO_CLUSTERED_LOCKING))
|
||||||
break;
|
break;
|
||||||
log_very_verbose("Falling back to clustered locking.");
|
|
||||||
/* Fall through */
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CLUSTER_LOCKING_INTERNAL
|
#ifdef CLUSTER_LOCKING_INTERNAL
|
||||||
|
log_very_verbose("Falling back to internal clustered locking.");
|
||||||
|
/* Fall through */
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
log_very_verbose("Cluster locking selected.");
|
log_very_verbose("Cluster locking selected.");
|
||||||
if (!init_cluster_locking(&_locking, cmd))
|
if (!init_cluster_locking(&_locking, cmd))
|
||||||
|
Loading…
Reference in New Issue
Block a user