summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/ec/src/ec-fops.h
blob: 8d938427a18a12c5b6ad7dee7d40b46103f99e30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
/*
  Copyright (c) 2012-2014 DataLab, s.l. <http://www.datalab.es>
  This file is part of GlusterFS.

  This file is licensed to you under your choice of the GNU Lesser
  General Public License, version 3 or any later version (LGPLv3 or
  later), or the GNU General Public License, version 2 (GPLv2), in all
  cases as published by the Free Software Foundation.
*/

#ifndef __EC_FOPS_H__
#define __EC_FOPS_H__

#include "xlator.h"

#include "ec-data.h"
#include "ec-common.h"

void ec_access(call_frame_t * frame, xlator_t * this, uintptr_t target,
               int32_t minimum, fop_access_cbk_t func, void *data, loc_t * loc,
               int32_t mask, dict_t * xdata);

void ec_create(call_frame_t * frame, xlator_t * this, uintptr_t target,
               int32_t minimum, fop_create_cbk_t func, void *data, loc_t * loc,
               int32_t flags, mode_t mode, mode_t umask, fd_t * fd,
               dict_t * xdata);

void ec_entrylk(call_frame_t * frame, xlator_t * this, uintptr_t target,
                int32_t minimum, fop_entrylk_cbk_t func, void *data,
                const char * volume, loc_t * loc, const char * basename,
                entrylk_cmd cmd, entrylk_type type, dict_t * xdata);

void ec_fentrylk(call_frame_t * frame, xlator_t * this, uintptr_t target,
                 int32_t minimum, fop_fentrylk_cbk_t func, void *data,
                 const char * volume, fd_t * fd, const char * basename,
                 entrylk_cmd cmd, entrylk_type type, dict_t * xdata);

void ec_flush(call_frame_t * frame, xlator_t * this, uintptr_t target,
              int32_t minimum, fop_flush_cbk_t func, void *data, fd_t * fd,
              dict_t * xdata);

void ec_fsync(call_frame_t * frame, xlator_t * this, uintptr_t target,
              int32_t minimum, fop_fsync_cbk_t func, void *data, fd_t * fd,
              int32_t datasync, dict_t * xdata);

void ec_fsyncdir(call_frame_t * frame, xlator_t * this, uintptr_t target,
                 int32_t minimum, fop_fsyncdir_cbk_t func, void *data,
                 fd_t * fd, int32_t datasync, dict_t * xdata);

void ec_getxattr(call_frame_t * frame, xlator_t * this, uintptr_t target,
                 int32_t minimum, fop_getxattr_cbk_t func, void *data,
                 loc_t * loc, const char * name, dict_t * xdata);

void ec_fgetxattr(call_frame_t * frame, xlator_t * this, uintptr_t target,
                  int32_t minimum, fop_fgetxattr_cbk_t func, void *data,
                  fd_t * fd, const char * name, dict_t * xdata);

void ec_heal(call_frame_t * frame, xlator_t * this, uintptr_t target,
             int32_t minimum, fop_heal_cbk_t func, void *data, loc_t * loc,
             int32_t partial, dict_t *xdata);

void ec_fheal(call_frame_t * frame, xlator_t * this, uintptr_t target,
              int32_t minimum, fop_fheal_cbk_t func, void *data, fd_t * fd,
              int32_t partial, dict_t *xdata);

void ec_inodelk(call_frame_t * frame, xlator_t * this, uintptr_t target,
                int32_t minimum, fop_inodelk_cbk_t func, void *data,
                const char * volume, loc_t * loc, int32_t cmd,
                struct gf_flock * flock, dict_t * xdata);

void ec_finodelk(call_frame_t * frame, xlator_t * this, uintptr_t target,
                 int32_t minimum, fop_finodelk_cbk_t func, void *data,
                 const char * volume, fd_t * fd, int32_t cmd,
                 struct gf_flock * flock, dict_t * xdata);

void ec_link(call_frame_t * frame, xlator_t * this, uintptr_t target,
             int32_t minimum, fop_link_cbk_t func, void *data, loc_t * oldloc,
             loc_t * newloc, dict_t * xdata);

void ec_lk(call_frame_t * frame, xlator_t * this, uintptr_t target,
           int32_t minimum, fop_lk_cbk_t func, void *data, fd_t * fd,
           int32_t cmd, struct gf_flock * flock, dict_t * xdata);

void ec_lookup(call_frame_t * frame, xlator_t * this, uintptr_t target,
               int32_t minimum, fop_lookup_cbk_t func, void *data, loc_t * loc,
               dict_t * xdata);

void ec_mkdir(call_frame_t * frame, xlator_t * this, uintptr_t target,
              int32_t minimum, fop_mkdir_cbk_t func, void *data, loc_t * loc,
              mode_t mode, mode_t umask, dict_t * xdata);

void ec_mknod(call_frame_t * frame, xlator_t * this, uintptr_t target,
              int32_t minimum, fop_mknod_cbk_t func, void *data, loc_t * loc,
              mode_t mode, dev_t rdev, mode_t umask, dict_t * xdata);

void ec_open(call_frame_t * frame, xlator_t * this, uintptr_t target,
             int32_t minimum, fop_open_cbk_t func, void *data, loc_t * loc,
             int32_t flags, fd_t * fd, dict_t * xdata);

void ec_opendir(call_frame_t * frame, xlator_t * this, uintptr_t target,
                int32_t minimum, fop_opendir_cbk_t func, void *data,
                loc_t * loc, fd_t * fd, dict_t * xdata);

void ec_readdir(call_frame_t * frame, xlator_t * this, uintptr_t target,
                int32_t minimum, fop_readdir_cbk_t func, void *data, fd_t * fd,
                size_t size, off_t offset, dict_t * xdata);

void ec_readdirp(call_frame_t * frame, xlator_t * this, uintptr_t target,
                 int32_t minimum, fop_readdirp_cbk_t func, void *data,
                 fd_t * fd, size_t size, off_t offset, dict_t * xdata);

void ec_readlink(call_frame_t * frame, xlator_t * this, uintptr_t target,
                 int32_t minimum, fop_readlink_cbk_t func, void *data,
                 loc_t * loc, size_t size, dict_t * xdata);

void ec_readv(call_frame_t * frame, xlator_t * this, uintptr_t target,
              int32_t minimum, fop_readv_cbk_t func, void *data, fd_t * fd,
              size_t size, off_t offset, uint32_t flags, dict_t * xdata);

void ec_removexattr(call_frame_t * frame, xlator_t * this, uintptr_t target,
                    int32_t minimum, fop_removexattr_cbk_t func, void *data,
                    loc_t * loc, const char * name, dict_t * xdata);

void ec_fremovexattr(call_frame_t * frame, xlator_t * this, uintptr_t target,
                     int32_t minimum, fop_fremovexattr_cbk_t func, void *data,
                     fd_t * fd, const char * name, dict_t * xdata);

void ec_rename(call_frame_t * frame, xlator_t * this, uintptr_t target,
               int32_t minimum, fop_rename_cbk_t func, void *data,
               loc_t * oldloc, loc_t * newloc, dict_t * xdata);

void ec_rmdir(call_frame_t * frame, xlator_t * this, uintptr_t target,
              int32_t minimum, fop_rmdir_cbk_t func, void *data, loc_t * loc,
              int xflags, dict_t * xdata);

void ec_setattr(call_frame_t * frame, xlator_t * this, uintptr_t target,
                int32_t minimum, fop_setattr_cbk_t func, void *data,
                loc_t * loc, struct iatt * stbuf, int32_t valid,
                dict_t * xdata);

void ec_fsetattr(call_frame_t * frame, xlator_t * this, uintptr_t target,
                 int32_t minimum, fop_fsetattr_cbk_t func, void *data,
                 fd_t * fd, struct iatt * stbuf, int32_t valid,
                 dict_t * xdata);

void ec_setxattr(call_frame_t * frame, xlator_t * this, uintptr_t target,
                 int32_t minimum, fop_setxattr_cbk_t func, void *data,
                 loc_t * loc, dict_t * dict, int32_t flags, dict_t * xdata);

void ec_fsetxattr(call_frame_t * frame, xlator_t * this, uintptr_t target,
                  int32_t minimum, fop_fsetxattr_cbk_t func, void *data,
                  fd_t * fd, dict_t * dict, int32_t flags, dict_t * xdata);

void ec_stat(call_frame_t * frame, xlator_t * this, uintptr_t target,
             int32_t minimum, fop_stat_cbk_t func, void *data, loc_t * loc,
             dict_t * xdata);

void ec_fstat(call_frame_t * frame, xlator_t * this, uintptr_t target,
              int32_t minimum, fop_fstat_cbk_t func, void *data, fd_t * fd,
              dict_t * xdata);

void ec_statfs(call_frame_t * frame, xlator_t * this, uintptr_t target,
               int32_t minimum, fop_statfs_cbk_t func, void *data, loc_t * loc,
               dict_t * xdata);

void ec_symlink(call_frame_t * frame, xlator_t * this, uintptr_t target,
                int32_t minimum, fop_symlink_cbk_t func, void *data,
                const char * linkname, loc_t * loc, mode_t umask,
                dict_t * xdata);

void ec_truncate(call_frame_t * frame, xlator_t * this, uintptr_t target,
                 int32_t minimum, fop_truncate_cbk_t func, void *data,
                 loc_t * loc, off_t offset, dict_t * xdata);

void ec_ftruncate(call_frame_t * frame, xlator_t * this, uintptr_t target,
                  int32_t minimum, fop_ftruncate_cbk_t func, void *data,
                  fd_t * fd, off_t offset, dict_t * xdata);

void ec_unlink(call_frame_t * frame, xlator_t * this, uintptr_t target,
               int32_t minimum, fop_unlink_cbk_t func, void *data, loc_t * loc,
               int xflags, dict_t * xdata);

void ec_writev(call_frame_t * frame, xlator_t * this, uintptr_t target,
               int32_t minimum, fop_writev_cbk_t func, void *data, fd_t * fd,
               struct iovec * vector, int32_t count, off_t offset,
               uint32_t flags, struct iobref * iobref, dict_t * xdata);

void ec_xattrop(call_frame_t * frame, xlator_t * this, uintptr_t target,
                int32_t minimum, fop_xattrop_cbk_t func, void *data,
                loc_t * loc, gf_xattrop_flags_t optype, dict_t * xattr,
                dict_t * xdata);

void ec_fxattrop(call_frame_t * frame, xlator_t * this, uintptr_t target,
                 int32_t minimum, fop_fxattrop_cbk_t func, void *data,
                 fd_t * fd, gf_xattrop_flags_t optype, dict_t * xattr,
                 dict_t * xdata);

void ec_seek(call_frame_t *frame, xlator_t *this, uintptr_t target,
             int32_t minimum, fop_seek_cbk_t func, void *data, fd_t *fd,
             off_t offset, gf_seek_what_t what, dict_t *xdata);

#endif /* __EC_FOPS_H__ */