magic22cn
May 14th, 2008, 02:59 AM
I have create a hash dir , it just look like this:
/dir/0
/dir/0/0
/dir/0/0/0
/dir/0/0/0/1
/dir/0/0/0/1/a001.txt
/dir/1
/dir/1/0
/dir/1/0/2
/dir/1/0/2/3
/dir/0/0/2/3/b100.txt
I only put file in deepest dir and every 100 file in each dir.
But , when the application have used about 30% disk space , about 30G, it will say "no space on device".I can see we have 70% space on disk through df -h.
So I have to clear the disk by deleted some file in this dir.After deleting , it will be ok.
And then , i use some large file to test the disk , i can fill the disk to 90% with 60 10g file, so I think my disk has no bad track.
So I wonder there is some limit on ubuntu or linux to limit the total count of files in a directory , include it's sub-dir.
Anyone could kindly explain this and help me solve this problem?
Thx a lot for any tips!
/dir/0
/dir/0/0
/dir/0/0/0
/dir/0/0/0/1
/dir/0/0/0/1/a001.txt
/dir/1
/dir/1/0
/dir/1/0/2
/dir/1/0/2/3
/dir/0/0/2/3/b100.txt
I only put file in deepest dir and every 100 file in each dir.
But , when the application have used about 30% disk space , about 30G, it will say "no space on device".I can see we have 70% space on disk through df -h.
So I have to clear the disk by deleted some file in this dir.After deleting , it will be ok.
And then , i use some large file to test the disk , i can fill the disk to 90% with 60 10g file, so I think my disk has no bad track.
So I wonder there is some limit on ubuntu or linux to limit the total count of files in a directory , include it's sub-dir.
Anyone could kindly explain this and help me solve this problem?
Thx a lot for any tips!