summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient/src/libglusterfsclient-internals.h
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@zresearch.com>2009-06-10 07:00:59 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-06-30 14:36:25 -0700
commit344319ab62daccac38592df30417d706836afb74 (patch)
treef3add5e38f96f2b46aafd636e206204d1fdbcf04 /libglusterfsclient/src/libglusterfsclient-internals.h
parent67f30aed943b13956e3a0e78f4a1f74fa05bc1fd (diff)
libglusterfsclient: update offset in glusterfs_read_async_cbk only if offset stored in fd_ctx is used.
- this helps in implementing sendfile(2). manpage says that "If offset is not NULL, then sendfile() does not modify the current file offset of in_fd" Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'libglusterfsclient/src/libglusterfsclient-internals.h')
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient-internals.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient-internals.h b/libglusterfsclient/src/libglusterfsclient-internals.h
index d55cfb1f5f6..9b14dcb9153 100755
--- a/libglusterfsclient/src/libglusterfsclient-internals.h
+++ b/libglusterfsclient/src/libglusterfsclient-internals.h
@@ -131,6 +131,7 @@ typedef struct libglusterfs_client_async_local {
struct {
fd_t *fd;
glusterfs_readv_cbk_t cbk;
+ char update_offset;
}readv_cbk;
struct {