summaryrefslogtreecommitdiffstats
path: root/api/src/gfapi.map
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2017-01-06 12:49:32 +0100
committergluster-ant <bugzilla-bot@gluster.org>2017-01-06 12:49:32 +0100
commitfc87f6ecb61a5bac09bc3d2d8f6b36c7f3ec75ab (patch)
treead185e236289bc951263c7eae90c2e023084caaf /api/src/gfapi.map
parenta6cc490625298e06d9bfc01a6d479cf13b934779 (diff)
gfapi: add API to trigger events for debugging and troubleshooting
Introduce glfs_sysrq() as a generic API for triggering debug and troubleshoot events. This interface will be used by the feature to get statedumps for applications using libgfapi. The current events that can be requested through this API are: - 'h'elp: log a mesage with all supported events - 's'tatedump: trigger a statedump for the passed glfs_t In future, this API can be used by a CLI to trigger statedumps from storage servers. At the moment it is limited to take statedumps, but it is extensible to set the log-level, clear caches, force reconnects and much more. BUG: 1169302 Change-Id: I18858359a3957870cea5139c79efe1365a15a992 Original-author: Poornima G <pgurusid@redhat.com> Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/16414 Reviewed-by: Prashanth Pai <ppai@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'api/src/gfapi.map')
-rw-r--r--api/src/gfapi.map7
1 files changed, 6 insertions, 1 deletions
diff --git a/api/src/gfapi.map b/api/src/gfapi.map
index d022380497..b6eb9a748e 100644
--- a/api/src/gfapi.map
+++ b/api/src/gfapi.map
@@ -194,7 +194,12 @@ GFAPI_3.7.17 {
glfs_realpath;
} GFAPI_3.7.16;
+GFAPI_3.10.0 {
+ global:
+ glfs_sysrq;
+} GFAPI_3.7.17;
+
GFAPI_4.0.0 {
global:
glfs_ipc;
-} GFAPI_3.7.17;
+} GFAPI_3.10.0;