Re: [RFC PATCH 00/15] Enhance /etc/nfs.conf usage and remove nfs-config.service

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 07 2016, Steve Dickson wrote:

> On 12/01/2016 10:58 PM, NeilBrown wrote:
>> This is an RFC series.  A little voice at the back of my head keeps
>> telling me that I'm over-engineering, but there isn't really that much
>> new code, and I think the result has a lot to recommend it.
>> 
>> But please tell me if I'm wrong.
>> 
>> - Various daemons (not all) are enhance to accept configuration
>>   information from /etc/nfs.conf
>> - the conffile reader is enhanced to support include files, and
>>   particularly to be able to include /etc/sysconf/X or /etc/defaults/X
>>   files usefully
>> - nfs-config.service is removed, because it isn't really needed with
>>   the above.
>> - documentation for all the above is provided, including a new
>>   nfs.systemd man page which gives the bigger picture.
>> 
> Here is the nfs.conf I will be using to do my testing... 
> I'm just wondering if this is something we should put in the git tree? 
>
> #
> # This is a general conifguration for the 
> # NFS daemons and tools
> #
> #[nfsdcltrack]
> # storagedir=/var/lib/nfs/nfsdcltrack
> #
> #[nfsd]
> # threads=8
> # grace-time=90
> # lease-time=90
> # udp=y
> # tcp=y
> # vers2=n
> # vers3=y
> # vers4=y
> # vers4.0=y
> # vers4.1=y
> # vers4.2=y
> # rdma=n
> # 
> #[mountd]
> # manage_gids=n
> # descriptors=0
> # port=42258
> # threads=1
> # reverse-lookup=n
> # state-directory-path=/var/lib/nfs
> # ha-callout=NULL

NULL??  That looks like it is meant to mean something.
Ditto for the "port=0" below.

You seem to be listing the default here, in which case I would just have

  ha-callout=

Otherwise, this is probably a good idea.  People seem to prefer to fill
in templates, rather than read documentation :-(

Thanks,
NeilBrown


> #
> #[statd]
> # port=0
> # outgoing-port=0
> # name=NULL
> # state-directory-path=/var/lib/nfs/statd

This is normally "/var/lib/nfs" - no "/statd".

> # ha-callout=NULL
> #
> #[lockd]
> # port=0
> # udp-port=0
> #
> #[sm-notify]
> # retry-time=900
> # outgoing-port=NULL
> # outgoing-addr=NULL
> #

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux