How to have more than 100000 (100K) albums while ext3 file system can allow maximum 32000 directories

huaishu

Joined: 2009-08-09
Posts: 1
Posted: Tue, 2009-08-11 13:18

I have more than 100000 (100K) albums to import into Gallery2 and my web server is running on ext3 file system.

After importing about 32000 albums, I got error: can't create directory xxxxxx. I noticed that the number of directories under /var/www/g2data/albums has reached 32000. And in ext3 file system, the maximum number of inodes for a single directory is 31998.

Could you please give me some advice how to support 100K albums? What code changes are needed if I want to store albums under albums/a, albums/b, albums/c..../albums/z to bypass the 32000 limit of ext3 file system?

Thanks,

Huaishu

 
alecmyers

Joined: 2006-08-01
Posts: 4338
Posted: Tue, 2009-08-11 16:33

just have subalbums from the root /a, /b, /c etc. The directory structure wgere Gallery2 stores images is a mirror of the album structure within the Gallery installation.