From a7aa733d2802eee2f4f2d24eca4378997b89bfbb Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Mon, 15 Apr 2013 09:52:35 -0700 Subject: gfapi: POSIX locking support Change-Id: I37d9e1fb4a715094876be6af3856c1b4cf398021 BUG: 953694 Signed-off-by: Anand Avati Reviewed-on: http://review.gluster.org/5155 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- api/src/glfs.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'api/src/glfs.h') diff --git a/api/src/glfs.h b/api/src/glfs.h index 06849d0c731..7fecffb697a 100644 --- a/api/src/glfs.h +++ b/api/src/glfs.h @@ -453,6 +453,12 @@ int glfs_fchdir (glfs_fd_t *fd); char *glfs_realpath (glfs_t *fs, const char *path, char *resolved_path); +/* + * @cmd and @flock are as specified in man fcntl(2). + */ +int glfs_posix_lock (glfs_fd_t *fd, int cmd, struct flock *flock); + + __END_DECLS #endif /* !_GLFS_H */ -- cgit