LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-14-2004, 11:02 AM   #1
sindri
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Rep: Reputation: 0
Limit of maximum files/direstories per directory?


Hello,

I want to know whether there's a limit of how many files or directories may exist in one single directory under reiserFS?

This piece of information is very important for a project... So any suggestion (or every fact) would be great!

Tanks a lot

Michael
 
Old 11-14-2004, 11:15 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I don't know of a way to do it on the filesystem level without rewriting the driver but you could modify the mkdir command or create a wrapper for it to check the number of directories that already exist before taking any action.
 
Old 11-14-2004, 11:45 AM   #3
sindri
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Hello,

thanks a lot for the answer...
I think my question was a bit complicated, and so it was perhaps the right answer to the false questiuon i think.. ;o)

Now let's have a second try:

I yust wantet to know whether there are limitations in gerneral using ReiserFS.
Is there a hard limit like e.g. a mximum of 20.000 Files or subdirectories in one single directory.

I want to omit the case, that a customer is trying to create 20.000 subdirectories on the machine
and then his actions are failing at 15.000 cause he's hitting a border, which is a limitation of the failesystem..

TIA
Michael
 
Old 11-14-2004, 11:56 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
From http://www.namesys.com/faq.html
Code:
Specifications for ReiserFS:  (in according to NIST standard)
  	3.5 	3.6
max number of files 	232 - 3 => 4 Gi - 3 	232 - 3 => 4 Gi - 3
max number files a dir can have 	518701895,
but in practice this value is limited by hash function. r5 hash allows about 1 200 000 file names without collisions 	232 - 4 => 4 Gi - 4
but in practice this value is limited by hash function. r5 hash allows about 1 200 000 file names without collisions
max file size 	231 - 1 => 2 Gi - 1 	260 - bytes => 1 Ei,
but page cache limits this to 8 Ti
on architectures with 32 bit int
max number links to a file 	216 => 64 Ki 	232 => 4 Gi
max filesystem size 	232 (4K) blocks => 16 Ti 	232 (4K) blocks => 16 Ti

Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Maximum number of files in a directory neranjana General 14 05-13-2010 01:33 PM
Maximum Number of Directory Entries & Performance aig Linux - General 1 07-09-2004 07:36 AM
Squid - Maximum time limit per user vkothiyal Linux - Software 0 05-29-2004 07:36 AM
Directory size limit macadam Linux - Newbie 3 09-22-2003 12:06 PM
process wide limit on Maximum file desriptors edreddy Linux - General 5 08-31-2002 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration