From: Steve Dickson <SteveD@redhat.com>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH] nfsmount.conf: New variables that explicitly set default
Date: Mon, 12 Oct 2009 13:10:33 -0400 [thread overview]
Message-ID: <4AD36309.1090202@RedHat.com> (raw)
In-Reply-To: <21B26104-0D0E-4362-8CE7-B567921B3314@oracle.com>
On 10/12/2009 11:16 AM, Chuck Lever wrote:
>
> On Oct 12, 2009, at 5:24 AM, Steve Dickson wrote:
>
>> I realize you are philosophically opposed to having a configure
>> file and allowing people to define defaults. You have made that
>> clear (at least that's my interpretation) from our previous discussions.
>
> You are reading way too much into this. I'm not at all trying to stop
> work on the config file. If I were, why would I have given you clean
> patches to support vers=4 and version negotiation? Read my lips: I'm
> over it, I've been over it for a while, and I'm now trying to help you
> get it right.
Great!!! Lets move on...
>
> I might make a similar assumption about your arguments: you are
> philosophically opposed to doing NFS mount processing in the kernel (and
> you've said as much, recently, on this mailing list).
Yes... I think its a major mistake when it comes to supporting, changing
and enhancing to push things like this into the kernel.. Remember I
live in world where its literally impossible to changing a kernel but
its fairly easy to replace a package...
> Now you are trying your damndest to keep the remaining bits in user space.
> You are fighting an uphill battle, I have to say, since pretty much every
> in-kernel file system does its mount option processing in the kernel
> these days.
Which of those file systems have a network in between their data and media,
plus do server negation with multiple daemons over multiple network
transports? Point being... One size does not fit all when it comes to mounting...
>
> So, this is not _my_ idea. It's the way Linux file systems are
> implemented now. Thus, we should try to make the mount.nfs config file
> conform to the Linux universe, and not the other way around.
I'll repeat... one size does not fit all... Plus replacing the
binary interface with the text based interface brought us in
lock step with the rest of the community... IMHO..
>
>> I would like to stay focus on the technical merit of this patch.
>> Meaning are there any holes in that will cause the mount to drop
>> core; is there anything I'm missing that will cause mounts to
>> unnecessarily fail. Things of that nature...
>
> I am directly addressing the technical merits of your patch: doing it
> your way adds unneeded complexity, breaks aspects of the current implementation,
> goes against the general architecture of mounting a Linux file system,
Please.. I'm doing none of the above... All I'm doing is adding a few lines
to allow a default values to be set... Lets not go to the extreme... ;-)
> will make future work in this area more difficult, *and* it will likely
> prevent us from moving this work into the kernel.
Again, I think this a stretch... The kernel has and always will have
the final say in how mounts are done.. When kernels changes the user
level code will follow suite... That's how its been and that's how it
will be...
>
> I'm not opposed to specifying defaults in the config file, but please
> don't do it this way. I have more of a problem with the specific
> implementation you've proposed rather than the idea of setting defaults.
You don't like global variables?? That's the only concept I'm
introducing that does not already exist. Building all those interface
you are talking to avoid using one global variable simply not worth
it.. IMHO..
>
> We need to approach this with the idea that version and transport
> negotiation will be handled in the kernel, going forward. The config
> file is a user interface that will need to be designed with the Linux
> mount(2) API in mind.
Like I said, when kernel changes, so will mount.nfs...
>
>>> We have a handful of mount options that adjust mount.nfs's behavior
>>> rather than specifying the behavior of the mountpoint: bg, fg, and
>>> retry= being the most obvious examples. Maybe we want a new mount
>>> option like defaultvers or defaultproto, which would fall into the same
>>> category. But the semantics of the existing vers= and proto= options
>>> just don't support this kind of thing, and I think we should be
>>> extremely careful about abusing them like this.
>> More mount options??? No... that is not the answer... IMHO..
>
> I can't see another way of providing a default version and transport to
> the kernel.
>
> Besides, why would you go to the trouble of adding a global, site, and
> server specific section in the config file, and then limit all of these
> to one default version and protocol?
No. The ideas is to allow those section to explicitly set versions/transport
(similar to setting them on the command line). I see those sections wanting
to be more static than dynamic... But only time will tell...
>
> Instead, you could add a different "defaultvers" setting to each
> section, _and_ have one on a specific mount point in /etc/fstab or in an
> automounter map. Such a default would then be accessible to every level
> of mount processing, and would provide the maximum flexibility to
> users. What's not to like about that?
Cool, when that functionally ready to go, the mount command will take
advantage of it...
Lets comprise... I'll change the 'default_vers' and 'default_proto'
to 'defaultvers' and 'defaultproto' in the configuration file. So when
the above functionality is available it will be a seamless transition..
So in the end, this will just become a bridge patch... Surely you can
stomach that... 8-)
steved.
next prev parent reply other threads:[~2009-10-12 17:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-09 18:16 [PATCH] nfsmount.conf: New variables that explicitly set default Steve Dickson
[not found] ` <4ACF7E0D.6060202-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org>
2009-10-09 20:29 ` Chuck Lever
2009-10-09 23:16 ` Steve Dickson
[not found] ` <4ACFC458.8060107-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org>
2009-10-10 0:38 ` Chuck Lever
2009-10-12 9:24 ` Steve Dickson
[not found] ` <4AD2F5B7.9040900-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org>
2009-10-12 15:16 ` Chuck Lever
2009-10-12 17:10 ` Steve Dickson [this message]
[not found] ` <4AD36309.1090202-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org>
2009-10-15 15:01 ` Chuck Lever
2009-10-19 12:38 ` Steve Dickson
[not found] ` <4ADC5DC8.90500-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org>
2009-10-21 17:37 ` Chuck Lever
2009-10-21 20:31 ` Steve Dickson
[not found] ` <4ADF6FA2.50801-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org>
2009-10-23 17:20 ` J. Bruce Fields
2009-10-23 17:26 ` Chuck Lever
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AD36309.1090202@RedHat.com \
--to=steved@redhat.com \
--cc=chuck.lever@oracle.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox