2007/10/17 19:38
文章作者:9Enjoy 转载请注明原文链接。
于是直接在命令行下,mkdir test
结果提示:
mkdir: cannot create directory `test`: Too many links
我看了一下,那个目录下有狂多的目录,猜想是不是Linux也有目录限制。记得Windows是有的,以前就碰到过。
搜索了一下,原来是有32000的限制。
引用
I already talked to Drew, there is a limit of 32,000 links in an inode,
which in turn limits the number of directories in a single place to 31,998
There is no way to increase this in ext2 without changing the inode format,
which will not happen before a little while (dixit the major ext2 FS guys at
ALS)
Solutions:
1) use base/d/di/directoryname name splits
2) use another filesystem (note that the default filesystem on freebsd, and
probably many other FS do also have a limit of 32K directories or
somesuch, so for portability, you want solution #1)
Marc
来源:http://blog.51766.com/page/zsc?entry=1141036876883
which in turn limits the number of directories in a single place to 31,998
There is no way to increase this in ext2 without changing the inode format,
which will not happen before a little while (dixit the major ext2 FS guys at
ALS)
Solutions:
1) use base/d/di/directoryname name splits
2) use another filesystem (note that the default filesystem on freebsd, and
probably many other FS do also have a limit of 32K directories or
somesuch, so for portability, you want solution #1)
Marc
来源:http://blog.51766.com/page/zsc?entry=1141036876883
原程序是每查询一个,就生成一个目录,怪不得有这么多目录。于是建议他以dir/dir或dir/dir/dir的形式存储,问题解决:)
另外,同一个目录下的文件不要太多,听说超过1000个文件或目录时读取速度就有些影响了。

重装升级Apache的过程
ProFTPD提示"no server available to handle request "的解决

