From 7af8d8edbd8554235348e0f54348edf222c0b46e Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Thu, 12 Mar 2009 16:21:51 +0530 Subject: Add extra 'volume' parameter to inodelk/entrylk calls Signed-off-by: Anand V. Avati --- libglusterfs/src/call-stub.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'libglusterfs/src/call-stub.h') diff --git a/libglusterfs/src/call-stub.h b/libglusterfs/src/call-stub.h index d80ddd173..a970897bb 100644 --- a/libglusterfs/src/call-stub.h +++ b/libglusterfs/src/call-stub.h @@ -487,6 +487,7 @@ typedef struct { /* inodelk */ struct { fop_inodelk_t fn; + const char *volume; loc_t loc; int32_t cmd; struct flock lock; @@ -500,6 +501,7 @@ typedef struct { /* finodelk */ struct { fop_finodelk_t fn; + const char *volume; fd_t *fd; int32_t cmd; struct flock lock; @@ -514,6 +516,7 @@ typedef struct { struct { fop_entrylk_t fn; loc_t loc; + const char *volume; const char *name; entrylk_cmd cmd; entrylk_type type; @@ -528,6 +531,7 @@ typedef struct { struct { fop_fentrylk_t fn; fd_t *fd; + const char *volume; const char *name; entrylk_cmd cmd; entrylk_type type; @@ -1086,20 +1090,22 @@ fop_lk_cbk_stub (call_frame_t *frame, call_stub_t * fop_inodelk_stub (call_frame_t *frame, fop_inodelk_t fn, - loc_t *loc, int32_t cmd, struct flock *lock); + const char *volume, loc_t *loc, int32_t cmd, + struct flock *lock); call_stub_t * fop_finodelk_stub (call_frame_t *frame, fop_finodelk_t fn, - fd_t *fd, int32_t cmd, struct flock *lock); + const char *volume, fd_t *fd, int32_t cmd, + struct flock *lock); call_stub_t * fop_entrylk_stub (call_frame_t *frame, fop_entrylk_t fn, - loc_t *loc, const char *basename, + const char *volume, loc_t *loc, const char *basename, entrylk_cmd cmd, entrylk_type type); call_stub_t * fop_fentrylk_stub (call_frame_t *frame, fop_fentrylk_t fn, - fd_t *fd, const char *basename, + const char *volume, fd_t *fd, const char *basename, entrylk_cmd cmd, entrylk_type type); call_stub_t * -- cgit