summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoumya Koduri <skoduri@redhat.com>2016-02-23 18:27:09 +0530
committerJeff Darcy <jdarcy@redhat.com>2016-02-23 16:59:08 -0800
commitdcb13de77d0ac056b588f3eb7414e33afeeb3629 (patch)
tree11b9639830d659d83ee8205fb049565e946eab72
parent730ea2ca509a5bea05726090cd1e4cb67f040b7c (diff)
gfapi: Add xlator_cbks fops in gfapi
Change-Id: I1fe5dd757e65206f92e0a867b43b49a3c0f2d4cf BUG: 1311124 Signed-off-by: Soumya Koduri <skoduri@redhat.com> Reviewed-on: http://review.gluster.org/13499 Smoke: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
-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 bb657695489..ff8f68f452b 100644
--- a/api/src/glfs-master.c
+++ b/api/src/glfs-master.c
@@ -155,6 +155,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;
@@ -162,4 +180,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
+};