master - build: compile fixes
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=6a1f458bb7a95b5cf71e4e8bf9d030ce739ab039 Commit: 6a1f458bb7a95b5cf71e4e8bf9d030ce739ab039 Parent: 4d19321fd36fd6bf3f6170363f51be9ab39c03a7 Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Jun 1 20:24:45 2018 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Jun 1 21:12:31 2018 +0200
build: compile fixes
--- lib/locking/lvmlockd.c | 2 +- lib/lvmpolld/lvmpolld-client.h | 2 +- lib/metadata/mirror.c | 2 +- tools/pvmove.c | 2 +- tools/pvscan.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
lib/locking/lvmlockd.c +1 -1
@@ -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 ;
lib/lvmpolld/lvmpolld-client.h +1 -1
@@ -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"
lib/metadata/mirror.c +1 -1
@@ -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)) {
tools/pvmove.c +1 -1
@@ -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 ;
tools/pvscan.c +1 -1
@@ -197,7 +197,7 @@ static int _pvscan_autoactivate_single(struct cmd_context *cmd, const char *vg_nif (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);