From bf4a7bed6420377aac26693f450a450bc54d005c Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 27 Jun 2011 07:59:52 +0000 Subject: libglusterfs/syncop: add more functions do proper 'ref's and implement 'write()' and 'ftruncate()' Signed-off-by: Amar Tumballi Signed-off-by: Anand Avati BUG: 3081 (synchronous operations should be enhanced) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3081 --- libglusterfs/src/syncop.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libglusterfs/src/syncop.h') diff --git a/libglusterfs/src/syncop.h b/libglusterfs/src/syncop.h index 34844899c..fb8fd9e11 100644 --- a/libglusterfs/src/syncop.h +++ b/libglusterfs/src/syncop.h @@ -188,11 +188,16 @@ int syncop_create (xlator_t *subvol, loc_t *loc, int32_t flags, mode_t mode, int syncop_open (xlator_t *subvol, loc_t *loc, int32_t flags, fd_t *fd); int syncop_close (fd_t *fd); +int syncop_write (xlator_t *subvol, fd_t *fd, const char *buf, int size, + off_t offset, struct iobref *iobref); int syncop_writev (xlator_t *subvol, fd_t *fd, struct iovec *vector, int32_t count, off_t offset, struct iobref *iobref); int syncop_readv (xlator_t *subvol, fd_t *fd, size_t size, off_t off, /* out */ - struct iovec *vector, int *count, struct iobref *iobref); + struct iovec **vector, int *count, struct iobref **iobref); + +int syncop_ftruncate (xlator_t *subvol, fd_t *fd, off_t offset); + int syncop_unlink (xlator_t *subvol, loc_t *loc); -- cgit