/* Copyright (c) 2006-2009 Gluster, Inc. This file is part of GlusterFS. GlusterFS is free software; you can redistribute it and/or modify it under the terms of the GNU 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #ifndef __ROT_13_H__ #define __ROT_13_H__ #ifndef _CONFIG_H #define _CONFIG_H #include "config.h" #endif #include #include "call-stub.h" #define HASH_POS 1699 struct mdc_inode_cache { ino_t ino; struct stat stbuf; struct stat postparent; struct timeval tv; struct mdc_inode_cache *previous; struct mdc_inode_cache *next; }; typedef struct mdc_inode_cache mdc_inode_cache_t; struct mdc_private { uint32_t cache_timeout; uint32_t max_entries; uint32_t count; struct mdc_inode_cache *inode_cache_head[HASH_POS]; gf_lock_t lock; }; typedef struct mdc_private mdc_private_t; #endif /* __ROT_13_H__ */