diff options
| author | Susant Palai <spalai@redhat.com> | 2016-04-17 10:14:02 +0530 | 
|---|---|---|
| committer | Niels de Vos <ndevos@redhat.com> | 2016-05-01 18:04:21 -0700 | 
| commit | c4efd39d339535856c1a0a6b0fad2783587411c9 (patch) | |
| tree | bd6b6e2c632b42bda264f7cc0327cca4159e49a3 /libglusterfs/src/xlator.h | |
| parent | f1f6a0e2b09884151c37434bd512cb1482608218 (diff) | |
core: add getactivelk () fop
Change-Id: Ifd0ff278dcf43da064021f5c25e5dcd34347fcde
BUG: 1326085
Signed-off-by: Susant Palai <spalai@redhat.com>
Reviewed-on: http://review.gluster.org/13970
Smoke: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'libglusterfs/src/xlator.h')
| -rw-r--r-- | libglusterfs/src/xlator.h | 12 | 
1 files changed, 12 insertions, 0 deletions
diff --git a/libglusterfs/src/xlator.h b/libglusterfs/src/xlator.h index 052dd978a63..bb039c0a527 100644 --- a/libglusterfs/src/xlator.h +++ b/libglusterfs/src/xlator.h @@ -457,6 +457,12 @@ typedef int32_t (*fop_compound_cbk_t) (call_frame_t *frame,                                         int32_t op_ret, int32_t op_errno,                                         void *data, dict_t *xdata); +typedef int32_t (*fop_getactivelk_cbk_t) (call_frame_t *frame, void *cookie, +                                           xlator_t *this, int32_t op_ret, +                                           int32_t op_errno, +                                           lock_migration_info_t *locklist, +                                           dict_t *xdata); +  typedef int32_t (*fop_lookup_t) (call_frame_t *frame,                                   xlator_t *this,                                   loc_t *loc, @@ -708,6 +714,10 @@ typedef int32_t (*fop_lease_t) (call_frame_t *frame, xlator_t *this, loc_t *loc,  typedef int32_t (*fop_compound_t) (call_frame_t *frame, xlator_t *this,                                     void *args, dict_t *xdata); + +typedef int32_t (*fop_getactivelk_t) (call_frame_t *frame, xlator_t *this, +                                       loc_t *loc, dict_t *xdata); +  struct xlator_fops {          fop_lookup_t         lookup;          fop_stat_t           stat; @@ -758,6 +768,7 @@ struct xlator_fops {          fop_seek_t           seek;          fop_lease_t          lease;          fop_compound_t       compound; +        fop_getactivelk_t   getactivelk;          /* these entries are used for a typechecking hack in STACK_WIND _only_ */          fop_lookup_cbk_t         lookup_cbk; @@ -809,6 +820,7 @@ struct xlator_fops {          fop_seek_cbk_t           seek_cbk;          fop_lease_cbk_t          lease_cbk;          fop_compound_cbk_t       compound_cbk; +        fop_getactivelk_cbk_t   getactivelk_cbk;  };  typedef int32_t (*cbk_forget_t) (xlator_t *this,  | 
