Re: [nfs-utils PATCH] mount: reject "namlen=" option for a NFSv4 mount

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

 




> -----邮件原件-----
> 发件人: Steve Dickson <steved@xxxxxxxxxx>
> 发送时间: 2024年4月3日 0:21
> 收件人: Chen, Hanxiao <chenhx.fnst@xxxxxxxxxxx>
> 抄送: linux-nfs@xxxxxxxxxxxxxxx
> 主题: Re: [nfs-utils PATCH] mount: reject "namlen=" option for a NFSv4 mount
> 
> Hello,
> 
> On 3/22/24 6:36 AM, Chen Hanxiao wrote:
> > namlen is not a valid option for NFSv4
> > Currently, we could pass a namlen=xxx in a NFSv4 mount,
> > the mount command succeed and namlen is ignored silently
> I'm not sure it makes senses to fail a mount for
> a parameter  that is ignored. Maybe throw a warning
> that the par is being ignored...
> 
> What problem did this patch solve for you?
> 

When I do mount tests with namelen, I'm confused about the results the test:
	Parameter namlen= was ignored silently without sloppy option.

When digging into kernel source, I found that we don't need namlen for NFSv4 at all.
So, I think we'd better give user some feed back.

Throw a warning is much better than failing a mount.

Thanks for your advice.

Regards,
- Chen




[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