Linux NFS development
 help / color / mirror / Atom feed
* [PATCH] NFS: Only warn on unrecognized mount options
@ 2008-04-11 20:03 Chuck Lever
       [not found] ` <20080411200249.28007.12509.stgit-meopP2rzCrTwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Chuck Lever @ 2008-04-11 20:03 UTC (permalink / raw)
  To: trond.myklebust; +Cc: linux-nfs

To provide compatibility with automounters who use a common set of mount
options for all file systems, change the NFS in-kernel mount option parser
to ignore mount options it doesn't recognize.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---
Yet another NFS mount patch!  Build tested only.  Comments?

 fs/nfs/super.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index f921902..a7201f0 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -1044,7 +1044,8 @@ static int nfs_parse_mount_options(char *raw,
 			break;
 
 		default:
-			goto out_unknown;
+			printk(KERN_INFO "NFS: unrecognized mount option '%s'"
+					" ignored\n", p);
 		}
 	}
 
@@ -1070,10 +1071,6 @@ out_unrec_xprt:
 out_unrec_sec:
 	printk(KERN_INFO "NFS: unrecognized security flavor\n");
 	return 0;
-
-out_unknown:
-	printk(KERN_INFO "NFS: unknown mount option: %s\n", p);
-	return 0;
 }
 
 /*


^ permalink raw reply related	[flat|nested] 9+ messages in thread
* [PATCH] NFS: Only warn on unrecognized mount options
@ 2008-04-11 20:28 Chuck Lever
       [not found] ` <20080411202800.31268.3495.stgit-meopP2rzCrTwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Chuck Lever @ 2008-04-11 20:28 UTC (permalink / raw)
  To: trond.myklebust; +Cc: linux-nfs

To provide compatibility with automounters who use a common set of mount
options for all file systems, change the NFS in-kernel mount option parser
to ignore mount options it doesn't recognize.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---
Take 2.

 fs/nfs/super.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index f921902..cbf2b37 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -1044,7 +1044,8 @@ static int nfs_parse_mount_options(char *raw,
 			break;
 
 		default:
-			goto out_unknown;
+			dfprintk(MOUNT, "NFS: unrecognized mount option '%s'"
+					" ignored\n", p);
 		}
 	}
 
@@ -1070,10 +1071,6 @@ out_unrec_xprt:
 out_unrec_sec:
 	printk(KERN_INFO "NFS: unrecognized security flavor\n");
 	return 0;
-
-out_unknown:
-	printk(KERN_INFO "NFS: unknown mount option: %s\n", p);
-	return 0;
 }
 
 /*


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

end of thread, other threads:[~2008-04-25 11:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-11 20:03 [PATCH] NFS: Only warn on unrecognized mount options Chuck Lever
     [not found] ` <20080411200249.28007.12509.stgit-meopP2rzCrTwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
2008-04-11 20:07   ` Peter Staubach
2008-04-11 20:13     ` Chuck Lever
2008-04-11 20:23       ` Peter Staubach
2008-04-11 20:24   ` Trond Myklebust
     [not found]     ` <1207945499.15646.11.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2008-04-14 14:00       ` Chuck Lever
2008-04-14 17:19         ` Peter Staubach
  -- strict thread matches above, loose matches on Subject: below --
2008-04-11 20:28 Chuck Lever
     [not found] ` <20080411202800.31268.3495.stgit-meopP2rzCrTwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
2008-04-25 11:33   ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox