summaryrefslogtreecommitdiffstats
path: root/xlators/meta
diff options
context:
space:
mode:
authorRaghavendra G <rgowdapp@redhat.com>2015-05-27 12:08:54 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-05-27 04:03:18 -0700
commitd6fc353afce03095c98d67d377eb7ddf334fd42e (patch)
treeeb53832214d444be71fe5897b5e4e0008d25d259 /xlators/meta
parent628198deaf0bc3192607a01ccfaa7a605723fa4d (diff)
meta: implement fsync(dir)
Change-Id: I707c608a9803fe6ef86860ca5578d4d3f63fd2aa BUG: 1225323 Signed-off-by: Raghavendra G <rgowdapp@redhat.com> Reviewed-on: http://review.gluster.org/10929 Tested-by: NetBSD Build System Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/meta')
-rw-r--r--xlators/meta/src/meta.c46
1 files changed, 33 insertions, 13 deletions
diff --git a/xlators/meta/src/meta.c b/xlators/meta/src/meta.c
index 20c643f2f75..09ee71b2e9e 100644
--- a/xlators/meta/src/meta.c
+++ b/xlators/meta/src/meta.c
@@ -169,6 +169,24 @@ meta_ftruncate (call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset,
return 0;
}
+int32_t
+meta_fsync (call_frame_t *frame, xlator_t *this, fd_t *fd, int32_t flags,
+ dict_t *xdata)
+{
+ META_FOP (fd->inode, fsync, frame, this, fd, flags, xdata);
+
+ return 0;
+}
+
+int32_t
+meta_fsyncdir (call_frame_t *frame, xlator_t *this, fd_t *fd, int32_t flags,
+ dict_t *xdata)
+{
+ META_FOP (fd->inode, fsyncdir, frame, this, fd, flags, xdata);
+
+ return 0;
+}
+
int
meta_forget (xlator_t *this, inode_t *inode)
{
@@ -235,19 +253,21 @@ fini (xlator_t *this)
struct xlator_fops fops = {
- .lookup = meta_lookup,
- .opendir = meta_opendir,
- .open = meta_open,
- .readv = meta_readv,
- .flush = meta_flush,
- .stat = meta_stat,
- .fstat = meta_fstat,
- .readdir = meta_readdir,
- .readdirp = meta_readdirp,
- .readlink = meta_readlink,
- .writev = meta_writev,
- .truncate = meta_truncate,
- .ftruncate = meta_ftruncate
+ .lookup = meta_lookup,
+ .opendir = meta_opendir,
+ .open = meta_open,
+ .readv = meta_readv,
+ .flush = meta_flush,
+ .stat = meta_stat,
+ .fstat = meta_fstat,
+ .readdir = meta_readdir,
+ .readdirp = meta_readdirp,
+ .readlink = meta_readlink,
+ .writev = meta_writev,
+ .truncate = meta_truncate,
+ .ftruncate = meta_ftruncate,
+ .fsync = meta_fsync,
+ .fsyncdir = meta_fsyncdir
};