"Fossies" - the Fresh Open Source Software Archive

Member "glusterfs-8.2/xlators/cluster/afr/src/afr-inode-write.h" (16 Sep 2020, 2954 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 "afr-inode-write.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2   Copyright (c) 2008-2012 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 __INODE_WRITE_H__
   12 #define __INODE_WRITE_H__
   13 
   14 int32_t
   15 afr_chmod(call_frame_t *frame, xlator_t *this, loc_t *loc, mode_t mode,
   16           dict_t *xdata);
   17 
   18 int32_t
   19 afr_chown(call_frame_t *frame, xlator_t *this, loc_t *loc, uid_t uid, gid_t gid,
   20           dict_t *xdata);
   21 
   22 int
   23 afr_fchown(call_frame_t *frame, xlator_t *this, fd_t *fd, uid_t uid, gid_t gid,
   24            dict_t *xdata);
   25 
   26 int32_t
   27 afr_fchmod(call_frame_t *frame, xlator_t *this, fd_t *fd, mode_t mode,
   28            dict_t *xdata);
   29 
   30 int32_t
   31 afr_writev(call_frame_t *frame, xlator_t *this, fd_t *fd, struct iovec *vector,
   32            int32_t count, off_t offset, uint32_t flags, struct iobref *iobref,
   33            dict_t *xdata);
   34 
   35 int32_t
   36 afr_truncate(call_frame_t *frame, xlator_t *this, loc_t *loc, off_t offset,
   37              dict_t *xdata);
   38 
   39 int32_t
   40 afr_ftruncate(call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset,
   41               dict_t *xdata);
   42 
   43 int32_t
   44 afr_utimens(call_frame_t *frame, xlator_t *this, loc_t *loc,
   45             struct timespec tv[2], dict_t *xdata);
   46 
   47 int
   48 afr_setattr(call_frame_t *frame, xlator_t *this, loc_t *loc, struct iatt *buf,
   49             int32_t valid, dict_t *xdata);
   50 
   51 int
   52 afr_fsetattr(call_frame_t *frame, xlator_t *this, fd_t *fd, struct iatt *buf,
   53              int32_t valid, dict_t *xdata);
   54 
   55 int32_t
   56 afr_setxattr(call_frame_t *frame, xlator_t *this, loc_t *loc, dict_t *dict,
   57              int32_t flags, dict_t *xdata);
   58 
   59 int32_t
   60 afr_fsetxattr(call_frame_t *frame, xlator_t *this, fd_t *fd, dict_t *dict,
   61               int32_t flags, dict_t *xdata);
   62 
   63 int32_t
   64 afr_removexattr(call_frame_t *frame, xlator_t *this, loc_t *loc,
   65                 const char *name, dict_t *xdata);
   66 
   67 int32_t
   68 afr_fremovexattr(call_frame_t *frame, xlator_t *this, fd_t *fd,
   69                  const char *name, dict_t *xdata);
   70 
   71 int
   72 afr_discard(call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset,
   73             size_t len, dict_t *xdata);
   74 
   75 int
   76 afr_fallocate(call_frame_t *frame, xlator_t *this, fd_t *fd, int32_t mode,
   77               off_t offset, size_t len, dict_t *xdata);
   78 
   79 int
   80 afr_zerofill(call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset,
   81              off_t len, dict_t *xdata);
   82 
   83 int32_t
   84 afr_xattrop(call_frame_t *frame, xlator_t *this, loc_t *loc,
   85             gf_xattrop_flags_t optype, dict_t *xattr, dict_t *xdata);
   86 
   87 int32_t
   88 afr_fxattrop(call_frame_t *frame, xlator_t *this, fd_t *fd,
   89              gf_xattrop_flags_t optype, dict_t *xattr, dict_t *xdata);
   90 
   91 int
   92 afr_fsync(call_frame_t *frame, xlator_t *this, fd_t *fd, int32_t datasync,
   93           dict_t *xdata);
   94 #endif /* __INODE_WRITE_H__ */