summaryrefslogtreecommitdiffstats
path: root/xlators/features/metadisp/src/metadisp-fops.h
blob: 56dd427cf345109cc331764ee869b81bcf5843ec (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
#ifndef GF_METADISP_FOPS_H_
#define GF_METADISP_FOPS_H_

#include <glusterfs/xlator.h>
#include <glusterfs/dict.h>
#include <glusterfs/glusterfs.h>

#include <sys/types.h>

/* fops in here are defined in their own file. Every other fop is just defined
 * inline of fops.c */

int
metadisp_readdir(call_frame_t *frame, xlator_t *this, fd_t *fd, size_t size,
                 off_t off, dict_t *xdata);

int
metadisp_readdirp(call_frame_t *frame, xlator_t *this, fd_t *fd, size_t size,
                  off_t off, dict_t *dict);

int
metadisp_lookup(call_frame_t *frame, xlator_t *this, loc_t *loc, dict_t *xdata);

int
metadisp_create(call_frame_t *frame, xlator_t *this, loc_t *loc, int32_t flags,
                mode_t mode, mode_t umask, fd_t *fd, dict_t *xdata);

int
metadisp_open(call_frame_t *frame, xlator_t *this, loc_t *loc, int32_t flags,
              fd_t *fd, dict_t *xdata);

int
metadisp_stat(call_frame_t *frame, xlator_t *this, loc_t *loc, dict_t *xdata);

int
metadisp_inodelk(call_frame_t *frame, xlator_t *this, const char *volume,
                 loc_t *loc, int32_t cmd, struct gf_flock *lock, dict_t *xdata);

int
metadisp_fsync(call_frame_t *frame, xlator_t *this, fd_t *fd, int32_t flags,
               dict_t *xdata);

int
metadisp_unlink(call_frame_t *frame, xlator_t *this, loc_t *loc, int xflag,
                dict_t *xdata);

int
metadisp_setattr(call_frame_t *frame, xlator_t *this, loc_t *loc,
                 struct iatt *stbuf, int32_t valid, dict_t *xdata);

#endif