summaryrefslogtreecommitdiff
path: root/lib/log
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2016-02-22 09:42:03 -0600
committerDavid Teigland <teigland@redhat.com>2016-03-07 10:06:09 -0600
commit2d5dc6512e10924ab68e6a139081d7121bc3f7d6 (patch)
treed2c193c84be87fb97d9bae009ae7af79dcc1b927 /lib/log
parent18cf5e8e6758db59c9413bd9c9abcc183c49293d (diff)
downloadlvm2-2d5dc6512e10924ab68e6a139081d7121bc3f7d6.tar.gz
dbus: add notification from commands
When a command modifies a PV or VG, or changes the activation state of an LV, it will send a dbus notification when the command is finished. This can be enabled/disabled with a config setting.
Diffstat (limited to 'lib/log')
-rw-r--r--lib/log/log.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/log/log.h b/lib/log/log.h
index b7ba044fa..222a1adba 100644
--- a/lib/log/log.h
+++ b/lib/log/log.h
@@ -66,6 +66,7 @@
#define LOG_CLASS_CACHE 0x0040 /* "cache" */
#define LOG_CLASS_LOCKING 0x0080 /* "locking" */
#define LOG_CLASS_LVMPOLLD 0x0100 /* "lvmpolld" */
+#define LOG_CLASS_DBUS 0x0200 /* "dbus" */
#define log_debug(x...) LOG_LINE(_LOG_DEBUG, x)
#define log_debug_mem(x...) LOG_LINE_WITH_CLASS(_LOG_DEBUG, LOG_CLASS_MEM, x)
@@ -77,6 +78,7 @@
#define log_debug_cache(x...) LOG_LINE_WITH_CLASS(_LOG_DEBUG, LOG_CLASS_CACHE, x)
#define log_debug_locking(x...) LOG_LINE_WITH_CLASS(_LOG_DEBUG, LOG_CLASS_LOCKING, x)
#define log_debug_lvmpolld(x...) LOG_LINE_WITH_CLASS(_LOG_DEBUG, LOG_CLASS_LVMPOLLD, x)
+#define log_debug_dbus(x...) LOG_LINE_WITH_CLASS(_LOG_DEBUG, LOG_CLASS_DBUS, x)
#define log_info(x...) LOG_LINE(_LOG_INFO, x)
#define log_notice(x...) LOG_LINE(_LOG_NOTICE, x)