summaryrefslogtreecommitdiffstats
path: root/api/src/glfs.h
diff options
context:
space:
mode:
authorAnand Avati <avati@redhat.com>2013-05-02 20:01:18 -0700
committerVijay Bellur <vbellur@redhat.com>2013-06-08 14:53:48 -0700
commite25cf30a74941b4dc76b6d26b602afec2c1e2c6e (patch)
treef1e096b494106744e94ebd12620c363d2aa426a3 /api/src/glfs.h
parentd660b5fe4402d8942dfe6d3e5cecba9c1e0c297f (diff)
gfapi: add new API glfs_dup() to copy a file descriptor
Duplicate a glfs_fd file descriptor. Inherit the internal fd_t with a reference. Change-Id: Ib30e9a46b608b9f78202957f4dab6ba6265a9ec0 BUG: 953694 Signed-off-by: Anand Avati <avati@redhat.com> Reviewed-on: http://review.gluster.org/5170 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'api/src/glfs.h')
-rw-r--r--api/src/glfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/src/glfs.h b/api/src/glfs.h
index aeabfdf0b4f..f472ca4ea1e 100644
--- a/api/src/glfs.h
+++ b/api/src/glfs.h
@@ -461,6 +461,7 @@ char *glfs_realpath (glfs_t *fs, const char *path, char *resolved_path);
*/
int glfs_posix_lock (glfs_fd_t *fd, int cmd, struct flock *flock);
+glfs_fd_t *glfs_dup (glfs_fd_t *fd);
__END_DECLS