mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
build: compile fixes
This commit is contained in:
parent
4d19321fd3
commit
6a1f458bb7
@ -1111,7 +1111,7 @@ int lockd_stop_vg(struct cmd_context *cmd, struct volume_group *vg)
|
||||
int result;
|
||||
int ret;
|
||||
|
||||
if (!vg_is_shared(vg)))
|
||||
if (!vg_is_shared(vg))
|
||||
return 1;
|
||||
if (!_use_lvmlockd)
|
||||
return 0;
|
||||
|
@ -16,7 +16,7 @@
|
||||
#define _LVM_LVMPOLLD_CLIENT_H
|
||||
# ifdef LVMPOLLD_SUPPORT
|
||||
|
||||
# include "daemon-client.h"
|
||||
# include "libdaemon/client/daemon-client.h"
|
||||
|
||||
# define LVMPOLLD_SOCKET DEFAULT_RUN_DIR "/lvmpolld.socket"
|
||||
|
||||
|
@ -426,7 +426,7 @@ static int _activate_lv_like_model(struct logical_volume *model,
|
||||
{
|
||||
/* FIXME: run all cases through lv_active_change when clvm variants are gone. */
|
||||
|
||||
if (vg_is_shared(vg))
|
||||
if (vg_is_shared(lv->vg))
|
||||
return lv_active_change(lv->vg->cmd, lv, CHANGE_AEY, 0);
|
||||
|
||||
if (lv_is_active_exclusive(model)) {
|
||||
|
@ -642,7 +642,7 @@ static int _pvmove_setup_single(struct cmd_context *cmd,
|
||||
* other hosts. For LVs that are active on multiple hosts (sh), we
|
||||
* would need to used cluster mirrors.
|
||||
*/
|
||||
if (vg_is_shared(vg))) {
|
||||
if (vg_is_shared(vg)) {
|
||||
if (!lv) {
|
||||
log_error("pvmove in a shared VG requires a named LV.");
|
||||
return ECMD_FAILED;
|
||||
|
@ -197,7 +197,7 @@ static int _pvscan_autoactivate_single(struct cmd_context *cmd, const char *vg_n
|
||||
if (vg_is_exported(vg))
|
||||
return ECMD_PROCESSED;
|
||||
|
||||
if (vg_is_shared(vg)))
|
||||
if (vg_is_shared(vg))
|
||||
return ECMD_PROCESSED;
|
||||
|
||||
log_debug("pvscan autoactivating VG %s.", vg_name);
|
||||
|
Loading…
Reference in New Issue
Block a user