linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] nfs-utils: Allow users to disable mount option rewriting via norewriteopts mount option
@ 2015-04-20 18:18 Gregory Boyce
  2015-05-06 20:14 ` Steve Dickson
  0 siblings, 1 reply; 4+ messages in thread
From: Gregory Boyce @ 2015-04-20 18:18 UTC (permalink / raw)
  To: linux-nfs

Allow users to disable mount option rewriting via norewriteopts mount option.
This was required in our case in order to allow mounting a filer which 
inappropriately responded via the wrong interface.

Signed-off-by: Gregory Boyce <gregory.boyce@gmail.com>
---
  utils/mount/stropts.c | 8 ++++++++
  1 file changed, 8 insertions(+)

diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c
index df67fac..bbda754 100644
--- a/utils/mount/stropts.c
+++ b/utils/mount/stropts.c
@@ -534,6 +534,14 @@ nfs_rewrite_pmap_mount_options(struct mount_options *options, int checkv4)
  	struct pmap mnt_pmap;

  	/*
+	 * "norewriteopts" option bypasses the options rewriting
+	 */
+	if (po_contains(options, "norewriteopts") == PO_FOUND) {
+		po_remove_all(options, "norewriteopts");
+		return 1;
+	}
+
+	/*
  	 * Version and transport negotiation is not required
  	 * and does not work for RDMA mounts.
  	 */
-- 
2.3.2 (Apple Git-55)



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] nfs-utils: Allow users to disable mount option rewriting via norewriteopts mount option
  2015-04-20 18:18 [PATCH] nfs-utils: Allow users to disable mount option rewriting via norewriteopts mount option Gregory Boyce
@ 2015-05-06 20:14 ` Steve Dickson
  2015-05-06 20:28   ` Gregory Boyce
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Dickson @ 2015-05-06 20:14 UTC (permalink / raw)
  To: Gregory Boyce, linux-nfs



On 04/20/2015 02:18 PM, Gregory Boyce wrote:
> Allow users to disable mount option rewriting via norewriteopts mount option.
> This was required in our case in order to allow mounting a filer which inappropriately responded via the wrong interface.
> 
> Signed-off-by: Gregory Boyce <gregory.boyce@gmail.com>
Again... This is fixing a filer bug, correct? 

We generally don't do that... 

steved.

> ---
>  utils/mount/stropts.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c
> index df67fac..bbda754 100644
> --- a/utils/mount/stropts.c
> +++ b/utils/mount/stropts.c
> @@ -534,6 +534,14 @@ nfs_rewrite_pmap_mount_options(struct mount_options *options, int checkv4)
>      struct pmap mnt_pmap;
> 
>      /*
> +     * "norewriteopts" option bypasses the options rewriting
> +     */
> +    if (po_contains(options, "norewriteopts") == PO_FOUND) {
> +        po_remove_all(options, "norewriteopts");
> +        return 1;
> +    }
> +
> +    /*
>       * Version and transport negotiation is not required
>       * and does not work for RDMA mounts.
>       */

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] nfs-utils: Allow users to disable mount option rewriting via norewriteopts mount option
  2015-05-06 20:14 ` Steve Dickson
@ 2015-05-06 20:28   ` Gregory Boyce
  2015-05-07 13:48     ` Steve Dickson
  0 siblings, 1 reply; 4+ messages in thread
From: Gregory Boyce @ 2015-05-06 20:28 UTC (permalink / raw)
  To: Steve Dickson; +Cc: Linux NFS Mailing List

On Wed, May 6, 2015 at 4:14 PM, Steve Dickson <SteveD@redhat.com> wrote:
>
>
> On 04/20/2015 02:18 PM, Gregory Boyce wrote:
>> Allow users to disable mount option rewriting via norewriteopts mount option.
>> This was required in our case in order to allow mounting a filer which inappropriately responded via the wrong interface.
>>
>> Signed-off-by: Gregory Boyce <gregory.boyce@gmail.com>
> Again... This is fixing a filer bug, correct?
>
> We generally don't do that...
>
> steved.

This is working around a server bug on the client side, yes.

-- 
Greg

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] nfs-utils: Allow users to disable mount option rewriting via norewriteopts mount option
  2015-05-06 20:28   ` Gregory Boyce
@ 2015-05-07 13:48     ` Steve Dickson
  0 siblings, 0 replies; 4+ messages in thread
From: Steve Dickson @ 2015-05-07 13:48 UTC (permalink / raw)
  To: Gregory Boyce; +Cc: Linux NFS Mailing List



On 05/06/2015 04:28 PM, Gregory Boyce wrote:
> On Wed, May 6, 2015 at 4:14 PM, Steve Dickson <SteveD@redhat.com> wrote:
>>
>>
>> On 04/20/2015 02:18 PM, Gregory Boyce wrote:
>>> Allow users to disable mount option rewriting via norewriteopts mount option.
>>> This was required in our case in order to allow mounting a filer which inappropriately responded via the wrong interface.
>>>
>>> Signed-off-by: Gregory Boyce <gregory.boyce@gmail.com>
>> Again... This is fixing a filer bug, correct?
>>
>> We generally don't do that...
>>
>> steved.
> 
> This is working around a server bug on the client side, yes.
> 
That's tough... We generally don't do that because its becomes
a very slippy slope very quickly.... esp with adding a undocumented
mount flag we are going have to support forever...

This is something I just don't think is the right thing to do
so I'm going to NAK this patch. 

steved.


 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-05-07 13:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-20 18:18 [PATCH] nfs-utils: Allow users to disable mount option rewriting via norewriteopts mount option Gregory Boyce
2015-05-06 20:14 ` Steve Dickson
2015-05-06 20:28   ` Gregory Boyce
2015-05-07 13:48     ` Steve Dickson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).