Re: Problems mounting a Windows share

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Otto Moerbeek
Date: Thursday, March 1, 2007 - 12:37 am

On Thu, 1 Mar 2007, Joachim Schipper wrote:


A directory (or any file) can not have more than 2^15-1 hard links to
it. In the inode, di_nlink is a signed 16 bits type.

For directories, you have the . and .. link, so that leaves room for
32765 files and subdirectories. So (after fixing the counts in your
script ;-) I get (after about 2 minutes):

mkdir: lots/test-32-766: Too many links
mkdir 32-766 failed

I ran this locally on my file server. 

The directory with 32765 dirs in it can be listed witout problems,
both locally and on a NFS client. This is using an UDP mount. 

All this running current, the OP didn't say which version he is
running. There have been NFS related fixes put in the tree during this
year, iirc. 

	-Otto
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Problems mounting a Windows share, Joaquin Herrero, (Wed Feb 28, 9:38 am)
Re: Problems mounting a Windows share, Steve Williams, (Wed Feb 28, 10:21 am)
Re: Problems mounting a Windows share, Joaquin Herrero, (Wed Feb 28, 11:44 am)
Re: Problems mounting a Windows share, Chris Smith, (Wed Feb 28, 1:09 pm)
Re: Problems mounting a Windows share, Joachim Schipper, (Wed Feb 28, 3:18 pm)
Re: Problems mounting a Windows share, Joachim Schipper, (Wed Feb 28, 4:35 pm)
Re: Problems mounting a Windows share, Otto Moerbeek, (Thu Mar 1, 12:13 am)
Re: Problems mounting a Windows share, Joaquin Herrero, (Thu Mar 1, 12:28 am)
Re: Problems mounting a Windows share, Otto Moerbeek, (Thu Mar 1, 12:37 am)