diff options
author | Amar Tumballi <amar@gluster.com> | 2011-06-27 07:59:52 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-07-11 23:18:48 -0700 |
commit | bf4a7bed6420377aac26693f450a450bc54d005c (patch) | |
tree | 717a4b28cb06381a3c9cfd6ea06e8fc1750d7964 /libglusterfs/src/syncop.h | |
parent | a879613637f54a7a2016549b308b359b7577b5ad (diff) |
libglusterfs/syncop: add more functions
do proper 'ref's and implement 'write()' and 'ftruncate()'
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 3081 (synchronous operations should be enhanced)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3081
Diffstat (limited to 'libglusterfs/src/syncop.h')
-rw-r--r-- | libglusterfs/src/syncop.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libglusterfs/src/syncop.h b/libglusterfs/src/syncop.h index 34844899c2d..fb8fd9e11da 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); |