diff options
author | Csaba Henk <csaba@gluster.com> | 2010-10-26 04:00:29 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-10-26 23:56:12 -0700 |
commit | db94ed06a688fb596aba4deafdf59a5af2fd6bbe (patch) | |
tree | 84303f0d59270c75ff1e4ad1df1e3466b5cadde8 /libglusterfs/src/trie-mem-types.h | |
parent | 9f14b0a0ef26b6d41b61222dcf34fe7cdf46cb46 (diff) |
libglusterfs, glusterfsd: add shortname resolution + optname hinting support to VOLUME SET
Trie code used for hinting is contributed by Avati.
Signed-off-by: Csaba Henk <csaba@lowlife.hu>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1750 (clean up volgen)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1750
Diffstat (limited to 'libglusterfs/src/trie-mem-types.h')
-rw-r--r-- | libglusterfs/src/trie-mem-types.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/libglusterfs/src/trie-mem-types.h b/libglusterfs/src/trie-mem-types.h new file mode 100644 index 00000000000..2b21f67e1a8 --- /dev/null +++ b/libglusterfs/src/trie-mem-types.h @@ -0,0 +1,34 @@ +/* + Copyright (c) 2010 Gluster, Inc. <http://www.gluster.com> + This file is part of GlusterFS. + + GlusterFS is free software; you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation; either version 3 of the License, + or (at your option) any later version. + + GlusterFS is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see + <http://www.gnu.org/licenses/>. +*/ + +#ifndef __TRIE_MEM_TYPES_H__ +#define __TRIE_MEM_TYPES_H__ + +#include "mem-types.h" + +#define GF_MEM_TYPE_START (gf_common_mt_end + 1) + +enum gf_trie_mem_types_ { + gf_trie_mt_trie = GF_MEM_TYPE_START, + gf_trie_mt_data, + gf_trie_mt_node, + gf_trie_mt_buf, + gf_trie_mt_end, +}; +#endif |