summaryrefslogtreecommitdiffstats
path: root/api/src
diff options
context:
space:
mode:
authorSoumya Koduri <skoduri@redhat.com>2016-02-23 18:27:09 +0530
committerKaleb KEITHLEY <kkeithle@redhat.com>2016-02-29 04:01:24 -0800
commitc2b565904c9d2fdcb30ae21b5d77464415a05cd1 (patch)
tree008d35538a669e1f195f4a04c59728769db7abf8 /api/src
parentbc0bade84aefecfe1671c1360fd4632d26192988 (diff)
gfapi: Add xlator_cbks fops in gfapi
This is backport of the below fix - http://review.gluster.org/13499 Change-Id: I1fe5dd757e65206f92e0a867b43b49a3c0f2d4cf BUG: 1311445 Signed-off-by: Soumya Koduri <skoduri@redhat.com> Reviewed-on: http://review.gluster.org/13499 Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-on: http://review.gluster.org/13508 NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'api/src')
-rw-r--r--api/src/glfs-master.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/api/src/glfs-master.c b/api/src/glfs-master.c
index 11843c15b4d..77e2d53abb9 100644
--- a/api/src/glfs-master.c
+++ b/api/src/glfs-master.c
@@ -160,6 +160,24 @@ fini (xlator_t *this)
}
+/* place-holder fops */
+int
+glfs_forget (xlator_t *this, inode_t *inode)
+{
+ return 0;
+}
+
+int
+glfs_release (xlator_t *this, fd_t *fd)
+{
+ return 0;
+}
+
+int
+glfs_releasedir (xlator_t *this, fd_t *fd)
+{
+ return 0;
+}
struct xlator_dumpops dumpops;
@@ -167,4 +185,8 @@ struct xlator_dumpops dumpops;
struct xlator_fops fops;
-struct xlator_cbks cbks;
+struct xlator_cbks cbks = {
+ .forget = glfs_forget,
+ .release = glfs_release,
+ .releasedir = glfs_releasedir
+};