summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-cmd-volume.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli/src/cli-cmd-volume.c')
-rw-r--r--cli/src/cli-cmd-volume.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c
index 2ae4aa2dbf4..08bab2fefb1 100644
--- a/cli/src/cli-cmd-volume.c
+++ b/cli/src/cli-cmd-volume.c
@@ -243,7 +243,11 @@ out:
}
CLI_STACK_DESTROY (frame);
-
+#if (USE_EVENTS)
+ if (ret == 0) {
+ gf_event (EVENT_VOLUME_CREATE, "name=%s", (char *)words[2]);
+ }
+#endif
return ret;
}
@@ -318,6 +322,12 @@ out:
CLI_STACK_DESTROY (frame);
+#if (USE_EVENTS)
+ if (ret == 0) {
+ gf_event (EVENT_VOLUME_DELETE, "name=%s", (char *)words[2]);
+ }
+#endif
+
return ret;
}
@@ -392,6 +402,12 @@ out:
CLI_STACK_DESTROY (frame);
+#if (USE_EVENTS)
+ if (ret == 0) {
+ gf_event (EVENT_VOLUME_START, "name=%s", (char *)words[2]);
+ }
+#endif
+
return ret;
}
@@ -524,6 +540,12 @@ out:
CLI_STACK_DESTROY (frame);
+#if (USE_EVENTS)
+ if (ret == 0) {
+ gf_event (EVENT_VOLUME_STOP, "name=%s", (char *)words[2]);
+ }
+#endif
+
return ret;
}