summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/syncop.h
diff options
context:
space:
mode:
authorAnand Avati <avati@redhat.com>2013-04-15 09:52:35 -0700
committerVijay Bellur <vbellur@redhat.com>2013-06-08 14:49:10 -0700
commita7aa733d2802eee2f4f2d24eca4378997b89bfbb (patch)
treea26f941a32477eaf2b003b94c36f8b81b7ca8299 /libglusterfs/src/syncop.h
parent5b20fac94cd928747854c7170e368c6c864dff24 (diff)
gfapi: POSIX locking support
Change-Id: I37d9e1fb4a715094876be6af3856c1b4cf398021 BUG: 953694 Signed-off-by: Anand Avati <avati@redhat.com> Reviewed-on: http://review.gluster.org/5155 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'libglusterfs/src/syncop.h')
-rw-r--r--libglusterfs/src/syncop.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/syncop.h b/libglusterfs/src/syncop.h
index 004336d4cd4..425e077edeb 100644
--- a/libglusterfs/src/syncop.h
+++ b/libglusterfs/src/syncop.h
@@ -129,6 +129,7 @@ struct syncargs {
struct iobref *iobref;
char *buffer;
dict_t *xdata;
+ struct gf_flock flock;
/* some more _cbk needs */
uuid_t uuid;
@@ -333,4 +334,6 @@ int syncop_access (xlator_t *subvol, loc_t *loc, int32_t mask);
int syncop_rename (xlator_t *subvol, loc_t *oldloc, loc_t *newloc);
+int syncop_lk (xlator_t *subvol, fd_t *fd, int cmd, struct gf_flock *flock);
+
#endif /* _SYNCOP_H */