summaryrefslogtreecommitdiffstats
path: root/xlators/meta/src/meta.h
diff options
context:
space:
mode:
authorAnand Avati <avati@redhat.com>2014-05-16 21:31:02 -0700
committerAnand Avati <avati@redhat.com>2014-05-17 11:53:53 -0700
commit98f5f436dd9106819dea8bc6c9a42e03ee1e31be (patch)
tree653676af2f22db83dc3f03fff7947ee3a1aae7de /xlators/meta/src/meta.h
parent618d465295df02ae6d53be1327947a210bb8b47d (diff)
meta: add .file_write method into meta_ops
Add .file_write method in meta_ops and make write support into virtual files (like loglevel, measure_latency) much simpler. Change-Id: I812f782f645605c56f81b158bb0f289b3c8f909a BUG: 1089216 Signed-off-by: Anand Avati <avati@redhat.com> Reviewed-on: http://review.gluster.org/7785 Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/meta/src/meta.h')
-rw-r--r--xlators/meta/src/meta.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/meta/src/meta.h b/xlators/meta/src/meta.h
index f6ec8cb9cb7..652ebd7321c 100644
--- a/xlators/meta/src/meta.h
+++ b/xlators/meta/src/meta.h
@@ -47,6 +47,7 @@ struct meta_ops {
int (*file_fill) (xlator_t *this, inode_t *file, strfd_t *strfd);
int (*iatt_fill) (xlator_t *this, inode_t *inode, struct iatt *iatt);
int (*link_fill) (xlator_t *this, inode_t *inode, strfd_t *strfd);
+ int (*file_write) (xlator_t *this, fd_t *fd, struct iovec *iov, int count);
struct xlator_fops fops;
struct xlator_cbks cbks;
};