Debian Codegraph @

xlators/cluster/afr/src/afr-inode-write.h

raw
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_writev(call_frame_t *frame, xlator_t *this, fd_t *fd, struct iovec *vector,
16 int32_t count, off_t offset, uint32_t flags, struct iobref *iobref,
17 dict_t *xdata);
18
19 int32_t
20 afr_truncate(call_frame_t *frame, xlator_t *this, loc_t *loc, off_t offset,
21 dict_t *xdata);
22
23 int32_t
24 afr_ftruncate(call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset,
25 dict_t *xdata);
26
27 int
28 afr_setattr(call_frame_t *frame, xlator_t *this, loc_t *loc, struct iatt *buf,
29 int32_t valid, dict_t *xdata);
30
31 int
32 afr_fsetattr(call_frame_t *frame, xlator_t *this, fd_t *fd, struct iatt *buf,
33 int32_t valid, dict_t *xdata);
34
35 int32_t
36 afr_setxattr(call_frame_t *frame, xlator_t *this, loc_t *loc, dict_t *dict,
37 int32_t flags, dict_t *xdata);
38
39 int32_t
40 afr_fsetxattr(call_frame_t *frame, xlator_t *this, fd_t *fd, dict_t *dict,
41 int32_t flags, dict_t *xdata);
42
43 int32_t
44 afr_removexattr(call_frame_t *frame, xlator_t *this, loc_t *loc,
45 const char *name, dict_t *xdata);
46
47 int32_t
48 afr_fremovexattr(call_frame_t *frame, xlator_t *this, fd_t *fd,
49 const char *name, dict_t *xdata);
50
51 int
52 afr_discard(call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset,
53 size_t len, dict_t *xdata);
54
55 int
56 afr_fallocate(call_frame_t *frame, xlator_t *this, fd_t *fd, int32_t mode,
57 off_t offset, size_t len, dict_t *xdata);
58
59 int
60 afr_zerofill(call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset,
61 off_t len, dict_t *xdata);
62
63 int32_t
64 afr_xattrop(call_frame_t *frame, xlator_t *this, loc_t *loc,
65 gf_xattrop_flags_t optype, dict_t *xattr, dict_t *xdata);
66
67 int32_t
68 afr_fxattrop(call_frame_t *frame, xlator_t *this, fd_t *fd,
69 gf_xattrop_flags_t optype, dict_t *xattr, dict_t *xdata);
70
71 int
72 afr_fsync(call_frame_t *frame, xlator_t *this, fd_t *fd, int32_t datasync,
73 dict_t *xdata);
74 #endif /* __INODE_WRITE_H__ */