MAX_OPEN_FILES etc
Jeremy Allison
jallison at cthulhu.engr.sgi.com
Mon Jul 27 16:13:22 GMT 1998
Richard Sharpe wrote:
> following on from Jeremy's EM about fixing some code with respect to
> MAX_OPEN_FILES and MAX_FNUMS and MAX_OPEN_DIRECTORIES, I have been working
> on changing Samba so that max open files and max open directories can be
> specified in smb.conf.
>
> It is now clear to me (which it wasn't in the past) that I will need
> variables:
>
> max_open_files
Yes.
> max_open_directories
Maybe (depends if you want the user to mess with this,
it's only used internally right now).
> max_fnums (perhaps)
>
No. max_fnums = max_open_files + max_open_directories.
It cannot independently vary.
> I will also have to modify all code that accesses MAX_OPEN_FILES and
> MAX_OPEN_DIRECTORIES to access the apropriate (extern) variable ...
>
Yep.
> Any comments?
>
Looks good to me (with the comments above) - go for it !
Cheers,
Jeremy.
--
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------
More information about the samba-technical
mailing list