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 result;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (!vg_is_shared(vg)))
|
if (!vg_is_shared(vg))
|
||||||
return 1;
|
return 1;
|
||||||
if (!_use_lvmlockd)
|
if (!_use_lvmlockd)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
#define _LVM_LVMPOLLD_CLIENT_H
|
#define _LVM_LVMPOLLD_CLIENT_H
|
||||||
# ifdef LVMPOLLD_SUPPORT
|
# ifdef LVMPOLLD_SUPPORT
|
||||||
|
|
||||||
# include "daemon-client.h"
|
# include "libdaemon/client/daemon-client.h"
|
||||||
|
|
||||||
# define LVMPOLLD_SOCKET DEFAULT_RUN_DIR "/lvmpolld.socket"
|
# 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. */
|
/* 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);
|
return lv_active_change(lv->vg->cmd, lv, CHANGE_AEY, 0);
|
||||||
|
|
||||||
if (lv_is_active_exclusive(model)) {
|
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
|
* other hosts. For LVs that are active on multiple hosts (sh), we
|
||||||
* would need to used cluster mirrors.
|
* would need to used cluster mirrors.
|
||||||
*/
|
*/
|
||||||
if (vg_is_shared(vg))) {
|
if (vg_is_shared(vg)) {
|
||||||
if (!lv) {
|
if (!lv) {
|
||||||
log_error("pvmove in a shared VG requires a named LV.");
|
log_error("pvmove in a shared VG requires a named LV.");
|
||||||
return ECMD_FAILED;
|
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))
|
if (vg_is_exported(vg))
|
||||||
return ECMD_PROCESSED;
|
return ECMD_PROCESSED;
|
||||||
|
|
||||||
if (vg_is_shared(vg)))
|
if (vg_is_shared(vg))
|
||||||
return ECMD_PROCESSED;
|
return ECMD_PROCESSED;
|
||||||
|
|
||||||
log_debug("pvscan autoactivating VG %s.", vg_name);
|
log_debug("pvscan autoactivating VG %s.", vg_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user