summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/server/src/server-common.h
blob: 6200415e30405b50227087785340d65cae451986 (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
#include "server.h"
#include <glusterfs/defaults.h>
#include "rpc-common-xdr.h"
#include "glusterfs3-xdr.h"
#include "glusterfs3.h"
#include <glusterfs/compat-errno.h>
#include "server-messages.h"
#include <glusterfs/defaults.h>

#include "xdr-nfs3.h"
void
server_post_stat(server_state_t *state, gfs3_stat_rsp *rsp, struct iatt *stbuf);

void
server_post_readlink(gfs3_readlink_rsp *rsp, struct iatt *stbuf,
                     const char *buf);

void
server_post_mknod(server_state_t *state, gfs3_mknod_rsp *rsp,
                  struct iatt *stbuf, struct iatt *preparent,
                  struct iatt *postparent, inode_t *inode);
void
server_post_mkdir(server_state_t *state, gfs3_mkdir_rsp *rsp, inode_t *inode,
                  struct iatt *stbuf, struct iatt *preparent,
                  struct iatt *postparent, dict_t *xdata);

void
server_post_unlink(server_state_t *state, gfs3_unlink_rsp *rsp,
                   struct iatt *preparent, struct iatt *postparent);
void
server_post_rmdir(server_state_t *state, gfs3_rmdir_rsp *rsp,
                  struct iatt *preparent, struct iatt *postparent);

void
server_post_symlink(server_state_t *state, gfs3_symlink_rsp *rsp,
                    inode_t *inode, struct iatt *stbuf, struct iatt *preparent,
                    struct iatt *postparent, dict_t *xdata);
void
server_post_link(server_state_t *state, gfs3_link_rsp *rsp, inode_t *inode,
                 struct iatt *stbuf, struct iatt *preparent,
                 struct iatt *postparent, dict_t *xdata);
void
server_post_truncate(gfs3_truncate_rsp *rsp, struct iatt *prebuf,
                     struct iatt *postbuf);

void
server_post_writev(gfs3_write_rsp *rsp, struct iatt *prebuf,
                   struct iatt *postbuf);
void
server_post_statfs(gfs3_statfs_rsp *rsp, struct statvfs *stbuf);

void
server_post_fsync(gfs3_fsync_rsp *rsp, struct iatt *prebuf,
                  struct iatt *postbuf);

void
server_post_ftruncate(gfs3_ftruncate_rsp *rsp, struct iatt *prebuf,
                      struct iatt *postbuf);

void
server_post_fstat(server_state_t *state, gfs3_fstat_rsp *rsp,
                  struct iatt *stbuf);

void
server_post_lk(xlator_t *this, gfs3_lk_rsp *rsp, struct gf_flock *lock);

int
server_post_readdir(gfs3_readdir_rsp *rsp, gf_dirent_t *entries);

void
server_post_zerofill(gfs3_zerofill_rsp *rsp, struct iatt *statpre,
                     struct iatt *statpost);

void
server_post_discard(gfs3_discard_rsp *rsp, struct iatt *statpre,
                    struct iatt *statpost);

void
server_post_fallocate(gfs3_fallocate_rsp *rsp, struct iatt *statpre,
                      struct iatt *statpost);

void
server_post_seek(gfs3_seek_rsp *rsp, off_t offset);

int
server_post_readdirp(gfs3_readdirp_rsp *rsp, gf_dirent_t *entries);

void
server_post_fsetattr(gfs3_fsetattr_rsp *rsp, struct iatt *statpre,
                     struct iatt *statpost);

void
server_post_setattr(gfs3_setattr_rsp *rsp, struct iatt *statpre,
                    struct iatt *statpost);

void
server_post_rchecksum(gfs3_rchecksum_rsp *rsp, uint32_t weak_checksum,
                      uint8_t *strong_checksum);

void
server_post_rename(call_frame_t *frame, server_state_t *state,
                   gfs3_rename_rsp *rsp, struct iatt *stbuf,
                   struct iatt *preoldparent, struct iatt *postoldparent,
                   struct iatt *prenewparent, struct iatt *postnewparent);

int
server_post_open(call_frame_t *frame, xlator_t *this, gfs3_open_rsp *rsp,
                 fd_t *fd);
void
server_post_readv(gfs3_read_rsp *rsp, struct iatt *stbuf, int op_ret);

int
server_post_opendir(call_frame_t *frame, xlator_t *this, gfs3_opendir_rsp *rsp,
                    fd_t *fd);

int
server_post_create(call_frame_t *frame, gfs3_create_rsp *rsp,
                   server_state_t *state, xlator_t *this, fd_t *fd,
                   inode_t *inode, struct iatt *stbuf, struct iatt *preparent,
                   struct iatt *postparent);

void
server_post_lookup(gfs3_lookup_rsp *rsp, call_frame_t *frame,
                   server_state_t *state, inode_t *inode, struct iatt *stbuf,
                   struct iatt *postparent);

void
server_post_lease(gfs3_lease_rsp *rsp, struct gf_lease *lease);

void
server4_post_readlink(gfx_readlink_rsp *rsp, struct iatt *stbuf,
                      const char *buf);

void
server4_post_statfs(gfx_statfs_rsp *rsp, struct statvfs *stbuf);

void
server4_post_lk(xlator_t *this, gfx_lk_rsp *rsp, struct gf_flock *lock);

int
server4_post_readdir(gfx_readdir_rsp *rsp, gf_dirent_t *entries);

void
server4_post_seek(gfx_seek_rsp *rsp, off_t offset);

int
server4_post_readdirp(gfx_readdirp_rsp *rsp, gf_dirent_t *entries);

void
server4_post_rchecksum(gfx_rchecksum_rsp *rsp, uint32_t weak_checksum,
                       uint8_t *strong_checksum);

void
server4_post_rename(call_frame_t *frame, server_state_t *state,
                    gfx_rename_rsp *rsp, struct iatt *stbuf,
                    struct iatt *preoldparent, struct iatt *postoldparent,
                    struct iatt *prenewparent, struct iatt *postnewparent);

int
server4_post_open(call_frame_t *frame, xlator_t *this, gfx_open_rsp *rsp,
                  fd_t *fd);
void
server4_post_readv(gfx_read_rsp *rsp, struct iatt *stbuf, int op_ret);

int
server4_post_create(call_frame_t *frame, gfx_create_rsp *rsp,
                    server_state_t *state, xlator_t *this, fd_t *fd,
                    inode_t *inode, struct iatt *stbuf, struct iatt *preparent,
                    struct iatt *postparent);

void
server4_post_common_2iatt(gfx_common_2iatt_rsp *rsp, struct iatt *stbuf1,
                          struct iatt *stbuf2);

void
server4_post_entry_remove(server_state_t *state, gfx_common_2iatt_rsp *rsp,
                          struct iatt *stbuf1, struct iatt *stbuf2);

void
server4_post_common_3iatt(server_state_t *state, gfx_common_3iatt_rsp *rsp,
                          inode_t *inode, struct iatt *stbuf, struct iatt *pre,
                          struct iatt *post);
void
server4_post_common_iatt(server_state_t *state, gfx_common_iatt_rsp *rsp,
                         struct iatt *stbuf);
void
server4_post_lease(gfx_lease_rsp *rsp, struct gf_lease *lease);
void
server4_post_lookup(gfx_common_2iatt_rsp *rsp, call_frame_t *frame,
                    server_state_t *state, inode_t *inode, struct iatt *stbuf);
void
server4_post_link(server_state_t *state, gfx_common_3iatt_rsp *rsp,
                  inode_t *inode, struct iatt *stbuf, struct iatt *pre,
                  struct iatt *post);

void
server4_post_common_3iatt_noinode(gfx_common_3iatt_rsp *rsp, struct iatt *stbuf,
                                  struct iatt *prebuf_dst,
                                  struct iatt *postbuf_dst);