| 1 | /* |
| 2 | Copyright (c) 2017 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 _POSIX_GFID_PATH_H |
| 12 | #define _POSIX_GFID_PATH_H |
| 13 | |
| 14 | #include <glusterfs/compat-errno.h> |
| 15 | |
| 16 | #include <stdint.h> // for int32_t |
| 17 | #include "glusterfs/dict.h" // for dict_t |
| 18 | #include "glusterfs/glusterfs.h" // for gf_boolean_t |
| 19 | #include "glusterfs/inode.h" // for inode_t |
| 20 | #define MAX_GFID2PATH_LINK_SUP 500 |
| 21 | |
| 22 | gf_boolean_t |
| 23 | posix_is_gfid2path_xattr(const char *name); |
| 24 | int32_t |
| 25 | posix_get_gfid2path(xlator_t *this, inode_t *inode, const char *real_path, |
| 26 | int *op_errno, dict_t *dict); |
| 27 | #endif /* _POSIX_GFID_PATH_H */ |