"Fossies" - the Fresh Open Source Software Archive

Member "glusterfs-8.2/xlators/protocol/client/src/client-common.h" (16 Sep 2020, 22073 Bytes) of package /linux/misc/glusterfs-8.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "client-common.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2   Copyright (c); 2016 Red Hat, Inc. <http://www.redhat.com>
    3   This file is part of GlusterFS.
    4 
    5   This file is licensed to you under your choice of the GNU Lesser
    6   General Public License, version 3 or any later version (LGPLv3 or
    7   later);, or the GNU General Public License, version 2 (GPLv2), in all
    8   cases as published by the Free Software Foundation.
    9 */
   10 
   11 #ifndef __CLIENT_COMMON_H__
   12 #define __CLIENT_COMMON_H__
   13 
   14 #include <glusterfs/dict.h>
   15 #include <glusterfs/xlator.h>
   16 #include "rpc-common-xdr.h"
   17 #include "glusterfs3-xdr.h"
   18 #include "glusterfs4-xdr.h"
   19 #include "glusterfs3.h"
   20 #include "client.h"
   21 
   22 int
   23 client_pre_stat(xlator_t *this, gfs3_stat_req *req, loc_t *loc, dict_t *xdata);
   24 
   25 int
   26 client_pre_readlink(xlator_t *this, gfs3_readlink_req *req, loc_t *loc,
   27                     size_t size, dict_t *xdata);
   28 
   29 int
   30 client_pre_mknod(xlator_t *this, gfs3_mknod_req *req, loc_t *loc, mode_t mode,
   31                  dev_t rdev, mode_t umask, dict_t *xdata);
   32 
   33 int
   34 client_pre_mkdir(xlator_t *this, gfs3_mkdir_req *req, loc_t *loc, mode_t mode,
   35                  mode_t umask, dict_t *xdata);
   36 
   37 int
   38 client_pre_unlink(xlator_t *this, gfs3_unlink_req *req, loc_t *loc,
   39                   int32_t flags, dict_t *xdata);
   40 
   41 int
   42 client_pre_rmdir(xlator_t *this, gfs3_rmdir_req *req, loc_t *loc, int32_t flags,
   43                  dict_t *xdata);
   44 
   45 int
   46 client_pre_symlink(xlator_t *this, gfs3_symlink_req *req, loc_t *loc,
   47                    const char *linkname, mode_t umask, dict_t *xdata);
   48 
   49 int
   50 client_pre_rename(xlator_t *this, gfs3_rename_req *req, loc_t *oldloc,
   51                   loc_t *newloc, dict_t *xdata);
   52 
   53 int
   54 client_pre_link(xlator_t *this, gfs3_link_req *req, loc_t *oldloc,
   55                 loc_t *newloc, dict_t *xdata);
   56 
   57 int
   58 client_pre_truncate(xlator_t *this, gfs3_truncate_req *req, loc_t *loc,
   59                     off_t offset, dict_t *xdata);
   60 
   61 int
   62 client_pre_open(xlator_t *this, gfs3_open_req *req, loc_t *loc, fd_t *fd,
   63                 int32_t flags, dict_t *xdata);
   64 
   65 int
   66 client_pre_readv(xlator_t *this, gfs3_read_req *req, fd_t *fd, size_t size,
   67                  off_t offset, int32_t flags, dict_t *xdata);
   68 
   69 int
   70 client_pre_writev(xlator_t *this, gfs3_write_req *req, fd_t *fd, size_t size,
   71                   off_t offset, int32_t flags, dict_t **xdata);
   72 
   73 int
   74 client_pre_statfs(xlator_t *this, gfs3_statfs_req *req, loc_t *loc,
   75                   dict_t *xdata);
   76 
   77 int
   78 client_pre_flush(xlator_t *this, gfs3_flush_req *req, fd_t *fd, dict_t *xdata);
   79 
   80 int
   81 client_pre_fsync(xlator_t *this, gfs3_fsync_req *req, fd_t *fd, int32_t flags,
   82                  dict_t *xdata);
   83 
   84 int
   85 client_pre_setxattr(xlator_t *this, gfs3_setxattr_req *req, loc_t *loc,
   86                     dict_t *xattr, int32_t flags, dict_t *xdata);
   87 
   88 int
   89 client_pre_getxattr(xlator_t *this, gfs3_getxattr_req *req, loc_t *loc,
   90                     const char *name, dict_t *xdata);
   91 
   92 int
   93 client_pre_removexattr(xlator_t *this, gfs3_removexattr_req *req, loc_t *loc,
   94                        const char *name, dict_t *xdata);
   95 
   96 int
   97 client_pre_opendir(xlator_t *this, gfs3_opendir_req *req, loc_t *loc, fd_t *fd,
   98                    dict_t *xdata);
   99 
  100 int
  101 client_pre_fsyncdir(xlator_t *this, gfs3_fsyncdir_req *req, fd_t *fd,
  102                     int32_t flags, dict_t *xdata);
  103 
  104 int
  105 client_pre_access(xlator_t *this, gfs3_access_req *req, loc_t *loc,
  106                   int32_t mask, dict_t *xdata);
  107 
  108 int
  109 client_pre_create(xlator_t *this, gfs3_create_req *req, loc_t *loc, fd_t *fd,
  110                   mode_t mode, int32_t flags, mode_t umask, dict_t *xdata);
  111 
  112 int
  113 client_pre_ftruncate(xlator_t *this, gfs3_ftruncate_req *req, fd_t *fd,
  114                      off_t offset, dict_t *xdata);
  115 
  116 int
  117 client_pre_fstat(xlator_t *this, gfs3_fstat_req *req, fd_t *fd, dict_t *xdata);
  118 
  119 int
  120 client_pre_lk(xlator_t *this, gfs3_lk_req *req, int32_t cmd,
  121               struct gf_flock *flock, fd_t *fd, dict_t *xdata);
  122 
  123 int
  124 client_pre_lookup(xlator_t *this, gfs3_lookup_req *req, loc_t *loc,
  125                   dict_t *xdata);
  126 
  127 int
  128 client_pre_readdir(xlator_t *this, gfs3_readdir_req *req, fd_t *fd, size_t size,
  129                    off_t offset, dict_t *xdata);
  130 
  131 int
  132 client_pre_inodelk(xlator_t *this, gfs3_inodelk_req *req, loc_t *loc, int cmd,
  133                    struct gf_flock *flock, const char *volume, dict_t *xdata);
  134 
  135 int
  136 client_pre_finodelk(xlator_t *this, gfs3_finodelk_req *req, fd_t *fd, int cmd,
  137                     struct gf_flock *flock, const char *volume, dict_t *xdata);
  138 
  139 int
  140 client_pre_entrylk(xlator_t *this, gfs3_entrylk_req *req, loc_t *loc,
  141                    entrylk_cmd cmd_entrylk, entrylk_type type,
  142                    const char *volume, const char *basename, dict_t *xdata);
  143 
  144 int
  145 client_pre_fentrylk(xlator_t *this, gfs3_fentrylk_req *req, fd_t *fd,
  146                     entrylk_cmd cmd_entrylk, entrylk_type type,
  147                     const char *volume, const char *basename, dict_t *xdata);
  148 
  149 int
  150 client_pre_xattrop(xlator_t *this, gfs3_xattrop_req *req, loc_t *loc,
  151                    dict_t *xattr, int32_t flags, dict_t *xdata);
  152 
  153 int
  154 client_pre_fxattrop(xlator_t *this, gfs3_fxattrop_req *req, fd_t *fd,
  155                     dict_t *xattr, int32_t flags, dict_t *xdata);
  156 
  157 int
  158 client_pre_fgetxattr(xlator_t *this, gfs3_fgetxattr_req *req, fd_t *fd,
  159                      const char *name, dict_t *xdata);
  160 
  161 int
  162 client_pre_fsetxattr(xlator_t *this, gfs3_fsetxattr_req *req, fd_t *fd,
  163                      int32_t flags, dict_t *xattr, dict_t *xdata);
  164 int
  165 client_pre_seek(xlator_t *this, gfs3_seek_req *req, fd_t *fd, off_t offset,
  166                 gf_seek_what_t what, dict_t *xdata);
  167 
  168 int
  169 client_pre_rchecksum(xlator_t *this, gfs3_rchecksum_req *req, fd_t *fd,
  170                      int32_t len, off_t offset, dict_t *xdata);
  171 
  172 int
  173 client_pre_setattr(xlator_t *this, gfs3_setattr_req *req, loc_t *loc,
  174                    int32_t valid, struct iatt *stbuf, dict_t *xdata);
  175 int
  176 client_pre_fsetattr(xlator_t *this, gfs3_fsetattr_req *req, fd_t *fd,
  177                     int32_t valid, struct iatt *stbuf, dict_t *xdata);
  178 
  179 int
  180 client_pre_readdirp(xlator_t *this, gfs3_readdirp_req *req, fd_t *fd,
  181                     size_t size, off_t offset, dict_t *xdata);
  182 
  183 int
  184 client_pre_fremovexattr(xlator_t *this, gfs3_fremovexattr_req *req, fd_t *fd,
  185                         const char *name, dict_t *xdata);
  186 
  187 int
  188 client_pre_fallocate(xlator_t *this, gfs3_fallocate_req *req, fd_t *fd,
  189                      int32_t flags, off_t offset, size_t size, dict_t *xdata);
  190 int
  191 client_pre_discard(xlator_t *this, gfs3_discard_req *req, fd_t *fd,
  192                    off_t offset, size_t size, dict_t *xdata);
  193 int
  194 client_pre_zerofill(xlator_t *this, gfs3_zerofill_req *req, fd_t *fd,
  195                     off_t offset, size_t size, dict_t *xdata);
  196 int
  197 client_pre_ipc(xlator_t *this, gfs3_ipc_req *req, int32_t cmd, dict_t *xdata);
  198 
  199 int
  200 client_pre_lease(xlator_t *this, gfs3_lease_req *req, loc_t *loc,
  201                  struct gf_lease *lease, dict_t *xdata);
  202 
  203 int
  204 client_post_stat(xlator_t *this, gfs3_stat_rsp *rsp, struct iatt *iatt,
  205                  dict_t **xdata);
  206 
  207 int
  208 client_post_readlink(xlator_t *this, gfs3_readlink_rsp *rsp, struct iatt *iatt,
  209                      dict_t **xdata);
  210 
  211 int
  212 client_post_mknod(xlator_t *this, gfs3_mknod_rsp *rsp, struct iatt *stbuf,
  213                   struct iatt *preparent, struct iatt *postparent,
  214                   dict_t **xdata);
  215 
  216 int
  217 client_post_mkdir(xlator_t *this, gfs3_mkdir_rsp *rsp, struct iatt *stbuf,
  218                   struct iatt *preparent, struct iatt *postparent,
  219                   dict_t **xdata);
  220 
  221 int
  222 client_post_unlink(xlator_t *this, gfs3_unlink_rsp *rsp, struct iatt *preparent,
  223                    struct iatt *postparent, dict_t **xdata);
  224 
  225 int
  226 client_post_rmdir(xlator_t *this, gfs3_rmdir_rsp *rsp, struct iatt *preparent,
  227                   struct iatt *postparent, dict_t **xdata);
  228 
  229 int
  230 client_post_symlink(xlator_t *this, gfs3_symlink_rsp *rsp, struct iatt *stbuf,
  231                     struct iatt *preparent, struct iatt *postparent,
  232                     dict_t **xdata);
  233 
  234 int
  235 client_post_rename(xlator_t *this, gfs3_rename_rsp *rsp, struct iatt *stbuf,
  236                    struct iatt *preoldparent, struct iatt *postoldparent,
  237                    struct iatt *prenewparent, struct iatt *postnewparent,
  238                    dict_t **xdata);
  239 int
  240 client_post_link(xlator_t *this, gfs3_link_rsp *rsp, struct iatt *stbuf,
  241                  struct iatt *preparent, struct iatt *postparent,
  242                  dict_t **xdata);
  243 
  244 int
  245 client_post_truncate(xlator_t *this, gfs3_truncate_rsp *rsp,
  246                      struct iatt *prestat, struct iatt *poststat,
  247                      dict_t **xdata);
  248 
  249 int
  250 client_post_open(xlator_t *this, gfs3_open_rsp *rsp, dict_t **xdata);
  251 
  252 int
  253 client_post_readv(xlator_t *this, gfs3_read_rsp *rsp, struct iobref **iobref,
  254                   struct iobref *rsp_iobref, struct iatt *stat,
  255                   struct iovec *vector, struct iovec *rsp_vector, int *rspcount,
  256                   dict_t **xdata);
  257 
  258 int
  259 client_post_writev(xlator_t *this, gfs3_write_rsp *rsp, struct iatt *prestat,
  260                    struct iatt *poststat, dict_t **xdata);
  261 
  262 int
  263 client_post_statfs(xlator_t *this, gfs3_statfs_rsp *rsp, struct statvfs *statfs,
  264                    dict_t **xdata);
  265 
  266 int
  267 client_post_flush(xlator_t *this, gf_common_rsp *rsp, dict_t **xdata);
  268 
  269 int
  270 client_post_fsync(xlator_t *this, gfs3_fsync_rsp *rsp, struct iatt *prestat,
  271                   struct iatt *poststat, dict_t **xdata);
  272 int
  273 client_post_setxattr(xlator_t *this, gf_common_rsp *rsp, dict_t **xdata);
  274 
  275 int
  276 client_post_getxattr(xlator_t *this, gfs3_getxattr_rsp *rsp, dict_t **dict,
  277                      dict_t **xdata);
  278 
  279 int
  280 client_post_removexattr(xlator_t *this, gf_common_rsp *rsp, dict_t **xdata);
  281 
  282 int
  283 client_post_opendir(xlator_t *this, gfs3_opendir_rsp *rsp, dict_t **xdata);
  284 
  285 int
  286 client_post_fsyncdir(xlator_t *this, gf_common_rsp *rsp, dict_t **xdata);
  287 
  288 int
  289 client_post_access(xlator_t *this, gf_common_rsp *rsp, dict_t **xdata);
  290 
  291 int
  292 client_post_create(xlator_t *this, gfs3_create_rsp *rsp, struct iatt *stbuf,
  293                    struct iatt *preparent, struct iatt *postparent,
  294                    clnt_local_t *local, dict_t **xdata);
  295 
  296 int
  297 client_post_ftruncate(xlator_t *this, gfs3_ftruncate_rsp *rsp,
  298                       struct iatt *prestat, struct iatt *poststat,
  299                       dict_t **xdata);
  300 
  301 int
  302 client_post_fstat(xlator_t *this, gfs3_fstat_rsp *rsp, struct iatt *stat,
  303                   dict_t **xdata);
  304 
  305 int
  306 client_post_lk(xlator_t *this, gfs3_lk_rsp *rsp, struct gf_flock *lock,
  307                dict_t **xdata);
  308 
  309 int
  310 client_post_lookup(xlator_t *this, gfs3_lookup_rsp *rsp, struct iatt *stbuf,
  311                    struct iatt *postparent, dict_t **xdata);
  312 
  313 int
  314 client_post_readdir(xlator_t *this, gfs3_readdir_rsp *rsp, gf_dirent_t *entries,
  315                     dict_t **xdata);
  316 
  317 int
  318 client_post_inodelk(xlator_t *this, gf_common_rsp *rsp, dict_t **xdata);
  319 
  320 int
  321 client_post_finodelk(xlator_t *this, gf_common_rsp *rsp, dict_t **xdata);
  322 
  323 int
  324 client_post_entrylk(xlator_t *this, gf_common_rsp *rsp, dict_t **xdata);
  325 
  326 int
  327 client_post_fentrylk(xlator_t *this, gf_common_rsp *rsp, dict_t **xdata);
  328 
  329 int
  330 client_post_xattrop(xlator_t *this, gfs3_xattrop_rsp *rsp, dict_t **dict,
  331                     dict_t **xdata);
  332 
  333 int
  334 client_post_fxattrop(xlator_t *this, gfs3_fxattrop_rsp *rsp, dict_t **dict,
  335                      dict_t **xdata);
  336 
  337 int
  338 client_post_fgetxattr(xlator_t *this, gfs3_fgetxattr_rsp *rsp, dict_t **dict,
  339                       dict_t **xdata);
  340 
  341 int
  342 client_post_fsetxattr(xlator_t *this, gf_common_rsp *rsp, dict_t **xdata);
  343 
  344 int
  345 client_post_rchecksum(xlator_t *this, gfs3_rchecksum_rsp *rsp, dict_t **xdata);
  346 
  347 int
  348 client_post_setattr(xlator_t *this, gfs3_setattr_rsp *rsp, struct iatt *prestat,
  349                     struct iatt *poststat, dict_t **xdata);
  350 
  351 int
  352 client_post_fsetattr(xlator_t *this, gfs3_fsetattr_rsp *rsp,
  353                      struct iatt *prestat, struct iatt *poststat,
  354                      dict_t **xdata);
  355 
  356 int
  357 client_post_readdirp(xlator_t *this, gfs3_readdirp_rsp *rsp, fd_t *fd,
  358                      gf_dirent_t *entries, dict_t **xdata);
  359 
  360 int
  361 client_post_fremovexattr(xlator_t *this, gf_common_rsp *rsp, dict_t **xdata);
  362 
  363 int
  364 client_post_fallocate(xlator_t *this, gfs3_fallocate_rsp *rsp,
  365                       struct iatt *prestat, struct iatt *poststat,
  366                       dict_t **xdata);
  367 
  368 int
  369 client_post_discard(xlator_t *this, gfs3_discard_rsp *rsp, struct iatt *prestat,
  370                     struct iatt *poststat, dict_t **xdata);
  371 
  372 int
  373 client_post_zerofill(xlator_t *this, gfs3_zerofill_rsp *rsp,
  374                      struct iatt *prestat, struct iatt *poststat,
  375                      dict_t **xdata);
  376 
  377 int
  378 client_post_ipc(xlator_t *this, gfs3_ipc_rsp *rsp, dict_t **xdata);
  379 
  380 int
  381 client_post_seek(xlator_t *this, gfs3_seek_rsp *rsp, dict_t **xdata);
  382 
  383 int
  384 client_post_lease(xlator_t *this, gfs3_lease_rsp *rsp, struct gf_lease *lease,
  385                   dict_t **xdata);
  386 
  387 /* New functions for version 4 */
  388 int
  389 client_post_common_dict(xlator_t *this, gfx_common_dict_rsp *rsp, dict_t **dict,
  390                         dict_t **xdata);
  391 int
  392 client_post_common_3iatt(xlator_t *this, gfx_common_3iatt_rsp *rsp,
  393                          struct iatt *iatt, struct iatt *iatt2,
  394                          struct iatt *iatt3, dict_t **xdata);
  395 int
  396 client_post_common_2iatt(xlator_t *this, gfx_common_2iatt_rsp *rsp,
  397                          struct iatt *iatt, struct iatt *iatt2, dict_t **xdata);
  398 int
  399 client_post_common_iatt(xlator_t *this, gfx_common_iatt_rsp *rsp,
  400                         struct iatt *iatt, dict_t **xdata);
  401 int
  402 client_post_common_rsp(xlator_t *this, gfx_common_rsp *rsp, dict_t **xdata);
  403 
  404 int
  405 client_pre_stat_v2(xlator_t *this, gfx_stat_req *req, loc_t *loc,
  406                    dict_t *xdata);
  407 
  408 int
  409 client_pre_readlink_v2(xlator_t *this, gfx_readlink_req *req, loc_t *loc,
  410                        size_t size, dict_t *xdata);
  411 
  412 int
  413 client_pre_mknod_v2(xlator_t *this, gfx_mknod_req *req, loc_t *loc, mode_t mode,
  414                     dev_t rdev, mode_t umask, dict_t *xdata);
  415 
  416 int
  417 client_pre_mkdir_v2(xlator_t *this, gfx_mkdir_req *req, loc_t *loc, mode_t mode,
  418                     mode_t umask, dict_t *xdata);
  419 
  420 int
  421 client_pre_unlink_v2(xlator_t *this, gfx_unlink_req *req, loc_t *loc,
  422                      int32_t flags, dict_t *xdata);
  423 
  424 int
  425 client_pre_rmdir_v2(xlator_t *this, gfx_rmdir_req *req, loc_t *loc,
  426                     int32_t flags, dict_t *xdata);
  427 
  428 int
  429 client_pre_symlink_v2(xlator_t *this, gfx_symlink_req *req, loc_t *loc,
  430                       const char *linkname, mode_t umask, dict_t *xdata);
  431 
  432 int
  433 client_pre_rename_v2(xlator_t *this, gfx_rename_req *req, loc_t *oldloc,
  434                      loc_t *newloc, dict_t *xdata);
  435 
  436 int
  437 client_pre_link_v2(xlator_t *this, gfx_link_req *req, loc_t *oldloc,
  438                    loc_t *newloc, dict_t *xdata);
  439 
  440 int
  441 client_pre_truncate_v2(xlator_t *this, gfx_truncate_req *req, loc_t *loc,
  442                        off_t offset, dict_t *xdata);
  443 
  444 int
  445 client_pre_open_v2(xlator_t *this, gfx_open_req *req, loc_t *loc, fd_t *fd,
  446                    int32_t flags, dict_t *xdata);
  447 
  448 int
  449 client_pre_readv_v2(xlator_t *this, gfx_read_req *req, fd_t *fd, size_t size,
  450                     off_t offset, int32_t flags, dict_t *xdata);
  451 
  452 int
  453 client_pre_writev_v2(xlator_t *this, gfx_write_req *req, fd_t *fd, size_t size,
  454                      off_t offset, int32_t flags, dict_t **xdata);
  455 
  456 int
  457 client_pre_statfs_v2(xlator_t *this, gfx_statfs_req *req, loc_t *loc,
  458                      dict_t *xdata);
  459 
  460 int
  461 client_pre_flush_v2(xlator_t *this, gfx_flush_req *req, fd_t *fd,
  462                     dict_t *xdata);
  463 
  464 int
  465 client_pre_fsync_v2(xlator_t *this, gfx_fsync_req *req, fd_t *fd, int32_t flags,
  466                     dict_t *xdata);
  467 
  468 int
  469 client_pre_setxattr_v2(xlator_t *this, gfx_setxattr_req *req, loc_t *loc,
  470                        dict_t *xattr, int32_t flags, dict_t *xdata);
  471 
  472 int
  473 client_pre_getxattr_v2(xlator_t *this, gfx_getxattr_req *req, loc_t *loc,
  474                        const char *name, dict_t *xdata);
  475 
  476 int
  477 client_pre_removexattr_v2(xlator_t *this, gfx_removexattr_req *req, loc_t *loc,
  478                           const char *name, dict_t *xdata);
  479 
  480 int
  481 client_pre_opendir_v2(xlator_t *this, gfx_opendir_req *req, loc_t *loc,
  482                       fd_t *fd, dict_t *xdata);
  483 
  484 int
  485 client_pre_fsyncdir_v2(xlator_t *this, gfx_fsyncdir_req *req, fd_t *fd,
  486                        int32_t flags, dict_t *xdata);
  487 
  488 int
  489 client_pre_access_v2(xlator_t *this, gfx_access_req *req, loc_t *loc,
  490                      int32_t mask, dict_t *xdata);
  491 
  492 int
  493 client_pre_create_v2(xlator_t *this, gfx_create_req *req, loc_t *loc, fd_t *fd,
  494                      mode_t mode, int32_t flags, mode_t umask, dict_t *xdata);
  495 
  496 int
  497 client_pre_ftruncate_v2(xlator_t *this, gfx_ftruncate_req *req, fd_t *fd,
  498                         off_t offset, dict_t *xdata);
  499 
  500 int
  501 client_pre_fstat_v2(xlator_t *this, gfx_fstat_req *req, fd_t *fd,
  502                     dict_t *xdata);
  503 
  504 int
  505 client_pre_lk_v2(xlator_t *this, gfx_lk_req *req, int32_t cmd,
  506                  struct gf_flock *flock, fd_t *fd, dict_t *xdata);
  507 
  508 int
  509 client_pre_lookup_v2(xlator_t *this, gfx_lookup_req *req, loc_t *loc,
  510                      dict_t *xdata);
  511 
  512 int
  513 client_pre_readdir_v2(xlator_t *this, gfx_readdir_req *req, fd_t *fd,
  514                       size_t size, off_t offset, dict_t *xdata);
  515 
  516 int
  517 client_pre_inodelk_v2(xlator_t *this, gfx_inodelk_req *req, loc_t *loc, int cmd,
  518                       struct gf_flock *flock, const char *volume,
  519                       dict_t *xdata);
  520 
  521 int
  522 client_pre_finodelk_v2(xlator_t *this, gfx_finodelk_req *req, fd_t *fd, int cmd,
  523                        struct gf_flock *flock, const char *volume,
  524                        dict_t *xdata);
  525 
  526 int
  527 client_pre_entrylk_v2(xlator_t *this, gfx_entrylk_req *req, loc_t *loc,
  528                       entrylk_cmd cmd_entrylk, entrylk_type type,
  529                       const char *volume, const char *basename, dict_t *xdata);
  530 
  531 int
  532 client_pre_fentrylk_v2(xlator_t *this, gfx_fentrylk_req *req, fd_t *fd,
  533                        entrylk_cmd cmd_entrylk, entrylk_type type,
  534                        const char *volume, const char *basename, dict_t *xdata);
  535 
  536 int
  537 client_pre_xattrop_v2(xlator_t *this, gfx_xattrop_req *req, loc_t *loc,
  538                       dict_t *xattr, int32_t flags, dict_t *xdata);
  539 
  540 int
  541 client_pre_fxattrop_v2(xlator_t *this, gfx_fxattrop_req *req, fd_t *fd,
  542                        dict_t *xattr, int32_t flags, dict_t *xdata);
  543 
  544 int
  545 client_pre_fgetxattr_v2(xlator_t *this, gfx_fgetxattr_req *req, fd_t *fd,
  546                         const char *name, dict_t *xdata);
  547 
  548 int
  549 client_pre_fsetxattr_v2(xlator_t *this, gfx_fsetxattr_req *req, fd_t *fd,
  550                         int32_t flags, dict_t *xattr, dict_t *xdata);
  551 int
  552 client_pre_seek_v2(xlator_t *this, gfx_seek_req *req, fd_t *fd, off_t offset,
  553                    gf_seek_what_t what, dict_t *xdata);
  554 
  555 int
  556 client_pre_rchecksum_v2(xlator_t *this, gfx_rchecksum_req *req, fd_t *fd,
  557                         int32_t len, off_t offset, dict_t *xdata);
  558 
  559 int
  560 client_pre_setattr_v2(xlator_t *this, gfx_setattr_req *req, loc_t *loc,
  561                       int32_t valid, struct iatt *stbuf, dict_t *xdata);
  562 int
  563 client_pre_fsetattr_v2(xlator_t *this, gfx_fsetattr_req *req, fd_t *fd,
  564                        int32_t valid, struct iatt *stbuf, dict_t *xdata);
  565 
  566 int
  567 client_pre_readdirp_v2(xlator_t *this, gfx_readdirp_req *req, fd_t *fd,
  568                        size_t size, off_t offset, dict_t *xdata);
  569 
  570 int
  571 client_pre_fremovexattr_v2(xlator_t *this, gfx_fremovexattr_req *req, fd_t *fd,
  572                            const char *name, dict_t *xdata);
  573 
  574 int
  575 client_pre_fallocate_v2(xlator_t *this, gfx_fallocate_req *req, fd_t *fd,
  576                         int32_t flags, off_t offset, size_t size,
  577                         dict_t *xdata);
  578 int
  579 client_pre_discard_v2(xlator_t *this, gfx_discard_req *req, fd_t *fd,
  580                       off_t offset, size_t size, dict_t *xdata);
  581 int
  582 client_pre_zerofill_v2(xlator_t *this, gfx_zerofill_req *req, fd_t *fd,
  583                        off_t offset, size_t size, dict_t *xdata);
  584 int
  585 client_pre_ipc_v2(xlator_t *this, gfx_ipc_req *req, int32_t cmd, dict_t *xdata);
  586 
  587 int
  588 client_pre_lease_v2(xlator_t *this, gfx_lease_req *req, loc_t *loc,
  589                     struct gf_lease *lease, dict_t *xdata);
  590 
  591 int
  592 client_pre_put_v2(xlator_t *this, gfx_put_req *req, loc_t *loc, mode_t mode,
  593                   mode_t umask, int32_t flags, size_t size, off_t offset,
  594                   dict_t *xattr, dict_t *xdata);
  595 
  596 int
  597 client_post_readv_v2(xlator_t *this, gfx_read_rsp *rsp, struct iobref **iobref,
  598                      struct iobref *rsp_iobref, struct iatt *stat,
  599                      struct iovec *vector, struct iovec *rsp_vector,
  600                      int *rspcount, dict_t **xdata);
  601 
  602 int
  603 client_post_create_v2(xlator_t *this, gfx_create_rsp *rsp, struct iatt *stbuf,
  604                       struct iatt *preparent, struct iatt *postparent,
  605                       clnt_local_t *local, dict_t **xdata);
  606 int
  607 client_post_lease_v2(xlator_t *this, gfx_lease_rsp *rsp, struct gf_lease *lease,
  608                      dict_t **xdata);
  609 int
  610 client_post_lk_v2(xlator_t *this, gfx_lk_rsp *rsp, struct gf_flock *lock,
  611                   dict_t **xdata);
  612 int
  613 client_post_readdir_v2(xlator_t *this, gfx_readdir_rsp *rsp,
  614                        gf_dirent_t *entries, dict_t **xdata);
  615 int
  616 client_post_readdirp_v2(xlator_t *this, gfx_readdirp_rsp *rsp, fd_t *fd,
  617                         gf_dirent_t *entries, dict_t **xdata);
  618 int
  619 client_post_rename_v2(xlator_t *this, gfx_rename_rsp *rsp, struct iatt *stbuf,
  620                       struct iatt *preoldparent, struct iatt *postoldparent,
  621                       struct iatt *prenewparent, struct iatt *postnewparent,
  622                       dict_t **xdata);
  623 
  624 int
  625 client_pre_copy_file_range_v2(xlator_t *this, gfx_copy_file_range_req *req,
  626                               fd_t *fd_in, off64_t off_in, fd_t *fd_out,
  627                               off64_t off_out, size_t size, int32_t flags,
  628                               dict_t **xdata);
  629 
  630 #endif /* __CLIENT_COMMON_H__ */