summaryrefslogtreecommitdiff
path: root/source3/smbd/mangle_hash2.c
AgeCommit message (Collapse)AuthorFilesLines
2002-10-21add a 'mangle prefix' option to allow people to tune the number ofAndrew Tridgell1-16/+41
characters used in the prefix for 8.3 names in the hash2 algorithm. The longer the prefix the more readable the 8.3 names will be, but the weaker the hash. this was added because of someone complaining that the new hashing algorithm was unreadable but the old one was broken :) (This used to be commit 3ca3cc838e5b957c7244b21947daddc4ee4c3099)
2002-10-15fixed a crash bug on 64 bit systems. Thanks to Anton Blanchard forAndrew Tridgell1-4/+2
finding this. (This used to be commit 4ba8608020123a52432e5afaa914e290e4ce8cbf)
2002-08-31Convert M_DEBUG(0 to M_DEBUG(10 for non-error cases ...Richard Sharpe1-8/+8
(This used to be commit d5c10e7dc76216db793319f9beb99dd12441e76b)
2002-07-18Unneded extra check on lenSimo Sorce1-1/+1
(This used to be commit e3b3c148208792ac2ccbfd468ad580b1264f9876)
2002-07-18We have to look at the length before checking for "~" as the stringJeremy Allison1-3/+3
may be shorter than 6 chars. Caught by valgrind. Jeremy. (This used to be commit b846bbfa831922b0be52e54804a46d7870895bfc)
2002-06-13Merge in mangle fixes from 2.2.Jeremy Allison1-8/+7
Jeremy. (This used to be commit 5e2571f424a40df4d67fe279517a9b21184b78e1)
2002-05-14Removed lp_strip_dot code - ensured that mangling code treats names endingJeremy Allison1-3/+24
in '.' as invalid long filenames (special treatment for '.' and '..' which are valid - yes Andrew I did this without strlen :-) :-). Jeremy. (This used to be commit 3180d8ba4ace9417033039d61d04c255da6f6a01)
2002-04-24move to the FNV1 hash alghorithm seem goodSimo Sorce1-4/+14
the test revealed 15 collision with 1 Million long file names :-) Simo. (This used to be commit 77dc498b6f0c435f082eb2d934920d3f3bef0b65)
2002-04-24made a couple of variables staticAndrew Tridgell1-3/+4
(This used to be commit fb6ce175d479e5bddc239595320f5dc245ac2ec6)
2002-04-18- fixed the is_mangled() interface to handle multiple componentsAndrew Tridgell1-5/+42
- fixed the no-extension case of reverse mangling (This used to be commit 64a2ae5cee4ffc5ae3c902705b6e1050f649e3a5)
2002-04-12- added a mangling test suite that measures the collision rate onAndrew Tridgell1-0/+14
randomised filenames - fixed several mangling bugs that the test suite pointed out (This used to be commit 858fa7efc34f6e7cdf8500900aed3f7943c91348)
2002-04-11- the 36^6 hash space gives 31 bits, not 32 bits. We need to mask theAndrew Tridgell1-2/+4
hash to suit - the prefix ends at the last dot, not the first (This used to be commit 91a3ccd3e790f980421c1ee93388e19e87026b29)
2002-04-11a few debug statements (disabled)Andrew Tridgell1-2/+7
(This used to be commit 582f753eac7a111a93a8d6c049398a0998af848f)
2002-04-11don't treat '.' as FLAG_ASCII, instead handle it separatelyAndrew Tridgell1-2/+2
(This used to be commit ecdddd674f2ffad16eaa01a68c9c91ff3b355b3f)
2002-04-11- tidier flag checking codeAndrew Tridgell1-8/+40
- finished the is_mangled() function (This used to be commit 128bec2071d640c775b58322256ac6bb03363741)
2002-04-11added some more commentsAndrew Tridgell1-5/+15
(This used to be commit 8d6f2e239940cbac44f6f0e9d584a47553acbc56)
2002-04-11some optimisations to the new mangling systemAndrew Tridgell1-16/+44
(This used to be commit 30b35d0c1f41f72ebe230905f76db8807802a6cc)
2002-04-11this adds a completely new hash based mangling schemeAndrew Tridgell1-0/+510
the hash for this scheme is *much* larger (approximately 31 bits) and the code is written to be very fast, correctly handling multibyte while not doing any actual multi-byte conversions in the vast majority of cases you can select this scheme using "mangling method = hash2", although I may make it the default if it works out well. (This used to be commit bb173c1a7e2408ced967ebac40b5e3f852ccd3a1)