summaryrefslogtreecommitdiffstats
path: root/tools/lvchange.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2012-02-15 15:18:43 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2012-02-15 15:18:43 +0000
commitd81498a824e66acca994807643e9df1e452fd61c (patch)
tree1783c57c308ad26276cd8188ebe2cddb7450121c /tools/lvchange.c
parent386220ada26f29eb9b340b0a9ebe3b5a76a4e7e7 (diff)
downloadlvm2-d81498a824e66acca994807643e9df1e452fd61c.tar.gz
lvm2-d81498a824e66acca994807643e9df1e452fd61c.tar.xz
lvm2-d81498a824e66acca994807643e9df1e452fd61c.zip
Initialize dmeventd monitoring for every command
Read lvm.conf setting for monitoring for each command. So we should not activate monitoring if the default compilation is set to monitor during lvconvert commnads. Patch also removes check for clustered VG and allows to disable monitoring for clustered VG with the assumption, the problem with monitoring and dmeventd flag passing for INGNORE is already fixed.
Diffstat (limited to 'tools/lvchange.c')
-rw-r--r--tools/lvchange.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/lvchange.c b/tools/lvchange.c
index ac761779..58581918 100644
--- a/tools/lvchange.c
+++ b/tools/lvchange.c
@@ -524,7 +524,7 @@ static int lvchange_single(struct cmd_context *cmd, struct logical_volume *lv,
void *handle __attribute__((unused)))
{
int doit = 0, docmds = 0;
- int dmeventd_mode, archived = 0;
+ int archived = 0;
struct logical_volume *origin;
char snaps_msg[128];
@@ -595,11 +595,6 @@ static int lvchange_single(struct cmd_context *cmd, struct logical_volume *lv,
return ECMD_FAILED;
}
- if (!get_activation_monitoring_mode(cmd, lv->vg, &dmeventd_mode))
- return ECMD_FAILED;
-
- init_dmeventd_monitor(dmeventd_mode);
-
/*
* FIXME: DEFAULT_BACKGROUND_POLLING should be "unspecified".
* If --poll is explicitly provided use it; otherwise polling