| 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 __DIR_WRITE_H__ |
| 12 |
#define __DIR_WRITE_H__ |
| 13 |
|
| 14 |
int32_t |
| 15 |
afr_create(call_frame_t *frame, xlator_t *this, loc_t *loc, int32_t flags, |
| 16 |
mode_t mode, mode_t umask, fd_t *fd, dict_t *xdata); |
| 17 |
|
| 18 |
int32_t |
| 19 |
afr_mknod(call_frame_t *frame, xlator_t *this, loc_t *loc, mode_t mode, |
| 20 |
dev_t dev, mode_t umask, dict_t *xdata); |
| 21 |
|
| 22 |
int32_t |
| 23 |
afr_mkdir(call_frame_t *frame, xlator_t *this, loc_t *loc, mode_t mode, |
| 24 |
mode_t umask, dict_t *xdata); |
| 25 |
|
| 26 |
int32_t |
| 27 |
afr_unlink(call_frame_t *frame, xlator_t *this, loc_t *loc, int xflag, |
| 28 |
dict_t *xdata); |
| 29 |
|
| 30 |
int32_t |
| 31 |
afr_rmdir(call_frame_t *frame, xlator_t *this, loc_t *loc, int flags, |
| 32 |
dict_t *xdata); |
| 33 |
|
| 34 |
int32_t |
| 35 |
afr_link(call_frame_t *frame, xlator_t *this, loc_t *oldloc, loc_t *newloc, |
| 36 |
dict_t *xdata); |
| 37 |
|
| 38 |
int32_t |
| 39 |
afr_rename(call_frame_t *frame, xlator_t *this, loc_t *oldloc, loc_t *newloc, |
| 40 |
dict_t *xdata); |
| 41 |
|
| 42 |
int |
| 43 |
afr_symlink(call_frame_t *frame, xlator_t *this, const char *linkpath, |
| 44 |
loc_t *oldloc, mode_t umask, dict_t *params); |
| 45 |
|
| 46 |
#endif /* __DIR_WRITE_H__ */ |