[CentOS] Question about optimal filesystem with many small files.

Fri Jul 10 20:11:45 UTC 2009
oooooooooooo ooooooooooooo <hhh735 at hotmail.com>

>I don't think you've explained the constraint that would make you use
> mysql or not.

My original idea was using the just the hash as filename, by this way I could have a direct access. But the customer rejected this and requested to have part of the long file name (from 11 to 1023 characters). As linux only allows 256 characters in the path and I could get duplicates with the 256 first chars, I trim teh real filename to around 200 characters and I add the hash at the end (plus a couple metadata small fields). 

Yes, there requirements does not makes too much sense, but I've tried to convince the customer to use just the hash with no luck (seems he does not understand well what is a hash although I've tried to explain it several times).

That's why  I need or a) use mysql or b) do a directory lising.

That would make up to 256^3 directory leaves, what is more than 16 Million ones, due I have around 15M files, I think that this is an excessive number of directories.

Connect to the next generation of MSN Messenger