diff options
author | Jonathan Earl Brassow <jbrassow@redhat.com> | 2011-08-11 14:00:58 +0000 |
---|---|---|
committer | Jonathan Earl Brassow <jbrassow@redhat.com> | 2011-08-11 14:00:58 +0000 |
commit | 34338a3406e6c0f0aff4600e5ea4b58e5521e49d (patch) | |
tree | c8e6745cd74f81ba953d271212814214935cb815 | |
parent | 26303811a4bd495323e0146f9cc1f24ddbc96afb (diff) | |
download | lvm2-34338a3406e6c0f0aff4600e5ea4b58e5521e49d.tar.gz lvm2-34338a3406e6c0f0aff4600e5ea4b58e5521e49d.tar.xz lvm2-34338a3406e6c0f0aff4600e5ea4b58e5521e49d.zip |
Need 'ifdef' checks around RAID monitoring functions as well to catch the
case where the user does not want dmeventd support compiled in.
-rw-r--r-- | lib/raid/raid.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/raid/raid.c b/lib/raid/raid.c index 98ca7467..da9f12b1 100644 --- a/lib/raid/raid.c +++ b/lib/raid/raid.c @@ -262,6 +262,8 @@ static void _raid_destroy(struct segment_type *segtype) dm_free((void *) segtype); } +#ifdef DEVMAPPER_SUPPORT +#ifdef DMEVENTD static const char *_get_raid_dso_path(struct cmd_context *cmd) { const char *config_str = find_config_tree_str(cmd, "dmeventd/raid_library", @@ -294,7 +296,8 @@ static int _raid_target_unmonitor_events(struct lv_segment *seg, int events) { return _raid_set_events(seg, events, 0); } - +#endif /* DEVMAPPER_SUPPORT */ +#endif /* DMEVENTD */ static struct segtype_handler _raid_ops = { .name = _raid_name, .text_import_area_count = _raid_text_import_area_count, |