I have a website which will store the user profile image. Each image is stored in a directory(linux) specific to the user. Currently I have a customer base of 30+, which means I will have 30+ folders. But my current linux box (ext2/ext3) doesn't support creating more than 32000 directories. How do I get pass this. Even youtube guys have got the same problem, with video thumbnails. But they solved it by moving to ReiserFS. Cant we have a better solution?
Update:When asked in IRC, people were asking to upgrading it to ext4, which has 64k limit and ofcourse you can even get pass that too. Or kernel hacking to change the limit.
Update:How about splitting the user base into folders based on the userid range.Meaning 1-1000 in one folder, 1000-2000 in the other like that. This seems to be simple. What do you say guys?
Frankly isn't there any other go?