diff options
author | Mohit Agrawal <moagrawal@redhat.com> | 2019-10-28 18:42:41 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2019-11-11 06:52:02 +0000 |
commit | 5304eaa662b263791baf0e5a9bd616446a3919ef (patch) | |
tree | 4ea9127a21aa407e9a006ddfc71c08d04bdcb915 /xlators/storage/posix/src/posix.h | |
parent | 54ed71dba174385ab0d8fa415e09262f6250430c (diff) |
posix: Improve MAKE_HANDLE_GFID_PATH and MAKE_HANDLE_RELPATH
Avoid one function call to set the gfid_path in buffer
Change-Id: If9b95801b05c34d262fac9a275492c794d12bf58
Updates #748
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix.h')
-rw-r--r-- | xlators/storage/posix/src/posix.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.h b/xlators/storage/posix/src/posix.h index bbcd7e564e8..8c4e1c0d103 100644 --- a/xlators/storage/posix/src/posix.h +++ b/xlators/storage/posix/src/posix.h @@ -59,6 +59,10 @@ #define POSIX_GFID_HANDLE_SIZE(base_path_len) \ (base_path_len + SLEN("/") + SLEN(GF_HIDDEN_PATH) + SLEN("/") + \ SLEN("00/") + SLEN("00/") + SLEN(UUID0_STR) + 1) /* '\0' */; + +#define POSIX_GFID_HANDLE_RELSIZE \ + SLEN("../") + SLEN("../") + SLEN("00/") + SLEN("00/") + SLEN(UUID0_STR) + 1; + #define GF_UNLINK_TRUE 0x0000000000000001 #define GF_UNLINK_FALSE 0x0000000000000000 |