diff options
author | Amar Tumballi <amar@gluster.com> | 2011-07-12 05:16:46 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-07-12 05:37:11 -0700 |
commit | 2c688714a2a081fc1be30febcd839caf8e201456 (patch) | |
tree | d031e44e46cf92ea1af13773d3daee8e965fc03b /xlators/storage/posix/src/posix.h | |
parent | 79f4135994e5051c711595c791d5831bdad24738 (diff) |
storage/posix: move the helper functions to separate file
helper functions were more than 800 lines
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 3158 (Keep code more readable and clean)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3158
Diffstat (limited to 'xlators/storage/posix/src/posix.h')
-rw-r--r-- | xlators/storage/posix/src/posix.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.h b/xlators/storage/posix/src/posix.h index d7b56961a21..f57bc0d7b68 100644 --- a/xlators/storage/posix/src/posix.h +++ b/xlators/storage/posix/src/posix.h @@ -126,4 +126,24 @@ struct posix_private { strcpy (&var[POSIX_BASE_PATH_LEN(this)], path); \ } while (0) + +/* Helper functions */ +int setgid_override (xlator_t *this, char *real_path, gid_t *gid); +int posix_gfid_set (xlator_t *this, const char *path, dict_t *xattr_req); +int posix_fstat_with_gfid (xlator_t *this, int fd, struct iatt *stbuf_p); +int posix_lstat_with_gfid (xlator_t *this, const char *path, struct iatt *buf); +dict_t *posix_lookup_xattr_fill (xlator_t *this, const char *path, + loc_t *loc, dict_t *xattr, struct iatt *buf); +int posix_handle_pair (xlator_t *this, char *real_path, + data_pair_t *trav, int flags); +int posix_fhandle_pair (xlator_t *this, int fd, data_pair_t *trav, int flags); +void posix_spawn_janitor_thread (xlator_t *this); +int posix_get_file_contents (xlator_t *this, char *path, + const char *name, char **contents); +int posix_set_file_contents (xlator_t *this, char *path, + data_pair_t *trav, int flags); +int posix_acl_xattr_set (xlator_t *this, const char *path, dict_t *xattr_req); +int posix_gfid_heal (xlator_t *this, const char *path, dict_t *xattr_req); + + #endif /* _POSIX_H */ |