From bdbd32d3ff1848aacbc1d1784a99beb8f388c301 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 24 Jan 2005 03:33:36 +0000 Subject: r4956: - moved the definition of the mangle context structure into a pvfs_shortname - made the mangle cache size configurable (This used to be commit 4adbd01812a53395f175bd6d8e402ad5451f7561) --- source4/ntvfs/posix/vfs_posix.h | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'source4/ntvfs/posix/vfs_posix.h') diff --git a/source4/ntvfs/posix/vfs_posix.h b/source4/ntvfs/posix/vfs_posix.h index f7bf19c3dc..28f1aab94f 100644 --- a/source4/ntvfs/posix/vfs_posix.h +++ b/source4/ntvfs/posix/vfs_posix.h @@ -164,31 +164,6 @@ struct pvfs_file { }; -struct pvfs_mangle_context { - uint8_t char_flags[256]; - /* - this determines how many characters are used from the original - filename in the 8.3 mangled name. A larger value leads to a weaker - hash and more collisions. The largest possible value is 6. - */ - int mangle_prefix; - uint32_t mangle_modulus; - - /* we will use a very simple direct mapped prefix cache. The big - advantage of this cache structure is speed and low memory usage - - The cache is indexed by the low-order bits of the hash, and confirmed by - hashing the resulting cache entry to match the known hash - */ - char **prefix_cache; - uint32_t *prefix_cache_hashes; - - /* this is used to reverse the base 36 mapping */ - unsigned char base_reverse[256]; -}; - - - /* flags to pvfs_resolve_name() */ #define PVFS_RESOLVE_WILDCARD (1<<0) #define PVFS_RESOLVE_STREAMS (1<<1) -- cgit