summaryrefslogtreecommitdiffstats
path: root/api/src
diff options
context:
space:
mode:
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
+};