NFS: Update help text for CONFIG_NFS_FS
Subsystems (4)
PATCH 1/8 NFS: Update help text for CONFIG_NFS_FS
Clean up: refresh the help text for Kconfig items related to the NFS client. Remove obsolete URLs, and make the language consistent among the options.
Also move the ROOT_NFS config option next to the options related to the NFS client.
---
fs/Kconfig | 115 ++++++++++++++++++++++++++++++------------------------------ 1 files changed, 57 insertions(+), 58 deletions(-)
fs/Kconfig +57 -58
@@ -1544,10 +1544,6 @@ config UFS_FS The recently released UFS2 variant (used in FreeBSD 5.x) is READ-ONLY supported. - If you only intend to mount files from some other Unix over the - network using NFS, you don't need the UFS file system support (but - you need NFS file system support obviously). - Note that this option is generally not needed for floppies, since a good portable way to transport files and directories between unixes (and even other operating systems) is given by the tar program ("man
@@ -1587,6 +1583,7 @@ menuconfig NETWORK_FILESYSTEMS Say Y here to get to see options for network filesystems and filesystem-related networking code, such as NFS daemon and RPCSEC security modules. + This option alone does not add any kernel code. If you say N, all options in this submenu will be skipped and
@@ -1595,76 +1592,92 @@ menuconfig NETWORK_FILESYSTEMS if NETWORK_FILESYSTEMS config NFS_FS - tristate "NFS file system support" + tristate "NFS client support" depends on INET select LOCKD select SUNRPC select NFS_ACL_SUPPORT if NFS_V3_ACL help - If you are connected to some other (usually local) Unix computer - (using SLIP, PLIP, PPP or Ethernet) and want to mount files residing - on that computer (the NFS server) using the Network File Sharing - protocol, say Y. "Mounting files" means that the client can access - the files with usual UNIX commands as if they were sitting on the - client's hard disk. For this to work, the server must run the - programs nfsd and mountd (but does not need to have NFS file system - support enabled in its kernel). NFS is explained in the Network - Administrator's Guide, available from - <http://www.tldp.org/docs.html#guide>, on its man page: "man - nfs", and in the NFS-HOWTO. - - A superior but less widely used alternative to NFS is provided by - the Coda file system; see "Coda file system support" below. + Choose Y here if you want to access files residing on other + computers using Sun's Network File System protocol. To compile + this file system support as a module, choose M here: the module + will be called nfs. - If you say Y here, you should have said Y to TCP/IP networking also. - This option would enlarge your kernel by about 27 KB. + To mount file systems exported by NFS servers, you also need to + install the user space mount.nfs command which can be found in + the Linux nfs-utils package, available from http://linux-nfs.org/. + Information about using the mount command is available in the + mount(8) man page. More detail about the Linux NFS client + implementation is available via the nfs(5) man page. - To compile this file system support as a module, choose M here: the - module will be called nfs. + Below you can choose which versions of the NFS protocol are + available in the kernel to mount NFS servers. Support for NFS + version 2 (RFC 1094) is always available when NFS_FS is selected. - If you are configuring a diskless machine which will mount its root - file system over NFS at boot time, say Y here and to "Kernel - level IP autoconfiguration" above and to "Root file system on NFS" - below. You cannot compile this driver as a module in this case. - There are two packages designed for booting diskless machines over - the net: netboot, available from - <http://ftp1.sourceforge.net/netboot/>, and Etherboot, - available from <http://ftp1.sourceforge.net/etherboot/>. + To configure a system which mounts its root file system via NFS + at boot time, say Y here, select "Kernel level IP + autoconfiguration" in the NETWORK menu, and select "Root file + system on NFS" below. You cannot compile this file system as a + module in this case. - If you don't know what all this is about, say N. + If unsure, say N. config NFS_V3 - bool "Provide NFSv3 client support" + bool "NFS client support for NFS version 3" depends on NFS_FS help - Say Y here if you want your NFS client to be able to speak version - 3 of the NFS protocol. + This option enables support for version 3 of the NFS protocol + (RFC 1813) in the kernel's NFS client. If unsure, say Y. config NFS_V3_ACL - bool "Provide client support for the NFSv3 ACL protocol extension" + bool "NFS client support for the NFSv3 ACL protocol extension" depends on NFS_V3 help - Implement the NFSv3 ACL protocol extension for manipulating POSIX - Access Control Lists. The server should also be compiled with - the NFSv3 ACL protocol extension; see the CONFIG_NFSD_V3_ACL option. + Some NFS servers support an auxiliary NFSv3 ACL protocol that + Sun added to Solaris but never became an official part of the + NFS version 3 protocol. This protocol extension allows + applications on NFS clients to manipulate POSIX Access Control + Lists on files residing on NFS servers. NFS servers enforce + ACLs on local files whether this protocol is available or not. + + Choose Y here if your NFS server supports the Solaris NFSv3 ACL + protocol extension and you want your NFS client to allow + applications to access and modify ACLs on files on the server. + + Most NFS servers don't support the Solaris NFSv3 ACL protocol + extension. You can choose N here or specify the "noacl" mount + option to prevent your NFS client from trying to use the NFSv3 + ACL protocol. If unsure, say N. config NFS_V4 - bool "Provide NFSv4 client support (EXPERIMENTAL)" + bool "NFS client support for NFS version 4 (EXPERIMENTAL)" depends on NFS_FS && EXPERIMENTAL select RPCSEC_GSS_KRB5 help - Say Y here if you want your NFS client to be able to speak the newer - version 4 of the NFS protocol. + This option enables support for version 4 of the NFS protocol + (RFC 3530) in the kernel's NFS client. - Note: Requires auxiliary userspace daemons which may be found on - http://www.citi.umich.edu/projects/nfsv4/ + To mount NFS servers using NFSv4, you also need to install user + space programs which can be found in the Linux nfs-utils package, + available from http://linux-nfs.org/. If unsure, say N. +config ROOT_NFS + bool "Root file system on NFS" + depends on NFS_FS=y && IP_PNP + help + If you want your system to mount its root file system via NFS, + choose Y here. This is common practice for managing systems + without local permanent storage. For details, read + <file:Documentation/filesystems/nfsroot.txt>. + + Most people say N here. + config NFSD tristate "NFS server support" depends on INET
@@ -1746,20 +1759,6 @@ config NFSD_V4 If unsure, say N. -config ROOT_NFS - bool "Root file system on NFS" - depends on NFS_FS=y && IP_PNP - help - If you want your Linux box to mount its whole root file system (the - one containing the directory /) from some other computer over the - net via NFS (presumably because your box doesn't have a hard disk), - say Y. Read <file:Documentation/filesystems/nfsroot.txt> for - details. It is likely that in this case, you also want to say Y to - "Kernel level IP autoconfiguration" so that your box can discover - its network address at boot time. - - Most people say N here. - config LOCKD tristate
A message that is not in the archive (sent off-list or not yet received): 20080518021241.8366.12464.stgit-ewv44WTpT0t9HhUboXbp9zCvJB+x5qRC@public.gmane.org
PATCH 2/8 SUNRPC: Use RPC procedure name in call_start
Making debugging output a little cleaner in call_start by displaying the name of the RPC procedure instead of it's number.
---
net/sunrpc/clnt.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
net/sunrpc/clnt.c +2 -2
@@ -701,9 +701,9 @@ call_start(struct rpc_task *task) {struct rpc_clnt *clnt = task->tk_client; -dprintk ("RPC: %5u call_start %s%d proc %d (%s)\n" , task->tk_pid, +dprintk ("RPC: %5u call_start %s%u proc %s (%s)\n" , task->tk_pid, clnt->cl_protname, clnt->cl_vers, - task->tk_msg.rpc_proc->p_proc, + task->tk_msg.rpc_proc->p_name, (RPC_IS_ASYNC (task) ?"async" :"sync" ));/* Increment call count */
PATCH 3/8 SUNRPC: Use RPC procedure name in call_verify
In reply to a message not in the archiveMaking debugging output a little cleaner in call_verify by displaying the name of the RPC procedure instead of it's number.
---
net/sunrpc/clnt.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
net/sunrpc/clnt.c +2 -2
@@ -1431,10 +1431,10 @@ call_verify(struct rpc_task *task) error = -EPROTONOSUPPORT ; goto out_err;case RPC_PROC_UNAVAIL : -dprintk ("RPC: %5u %s: proc %p unsupported by program %u, " +dprintk ("RPC: %5u %s: proc %s unsupported by program %u, " "version %u on server %s\n" , task->tk_pid, __func__, - task->tk_msg.rpc_proc, + task->tk_msg.rpc_proc->p_name, task->tk_client->cl_prog, task->tk_client->cl_vers, task->tk_client->cl_server);
PATCH 4/8 SUNRPC: Don't display the rpc_show_tasks header if there are no tasks
In reply to a message not in the archiveClean up: don't display the rpc_show_tasks column header unless there is at least one task to display. As far as I can tell, it is safe to let the list_for_each_entry macro decide that each list is empty.
scripts/checkpatch.pl also wants a KERN_FOO at the start of any newly added printk() calls, so this and subsequent patches will also add KERN_INFO.
---
net/sunrpc/clnt.c | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-)
net/sunrpc/clnt.c +12 -7
@@ -1517,24 +1517,30 @@ struct rpc_task *rpc_call_null(struct rpc_clnt *clnt, struct rpc_cred *cred, intEXPORT_SYMBOL_GPL (rpc_call_null);#ifdef RPC_DEBUG +static void rpc_show_header (void ) +{ +printk (KERN_INFO "-pid- proc flgs status -client- -prog- --rqstp- " +"-timeout -rpcwait -action- ---ops--\n" ); +} +void rpc_show_tasks (void ) {struct rpc_clnt *clnt;struct rpc_task *t; +int header =0 ;spin_lock (&rpc_client_lock); -if (list_empty (&all_clients)) - goto out; -printk ("-pid- proc flgs status -client- -prog- --rqstp- -timeout " -"-rpcwait -action- ---ops--\n" );list_for_each_entry (clnt, &all_clients, cl_clients) { -if (list_empty (&clnt->cl_tasks)) -continue ;spin_lock (&clnt->cl_lock);list_for_each_entry (t, &clnt->cl_tasks, tk_task) {const char *rpc_waitq ="none" ;int proc; +if (!header) { +rpc_show_header (); + header++; + } +if (t->tk_msg.rpc_proc) proc = t->tk_msg.rpc_proc->p_proc;else
@@ -1554,7 +1560,6 @@ void rpc_show_tasks(void) }spin_unlock (&clnt->cl_lock); } -out:spin_unlock (&rpc_client_lock); }#endif
A message that is not in the archive (sent off-list or not yet received): 20080518021636.8366.81782.stgit-ewv44WTpT0t9HhUboXbp9zCvJB+x5qRC@public.gmane.org
Re: [PATCH 4/8] SUNRPC: Don't display the rpc_show_tasks header if there are no tasks
Quoted 3 lines · Chuck Lever
Clean up: don't display the
rpc_show_taskscolumn header unless there is at least one task to display. As far as I can tell, it is safe to let thelist_for_each_entrymacro decide that each list is empty.
That second list_empty() check is just before a spin_lock(); I wonder if it was intended to avoid having to acquire a lot of spinlocks on inactive clients? Wouldn't have thought that was a worthwhile optimization, but I don't know.
--b.
Quoted 65 lines
scripts/checkpatch.plalso wants aKERN_FOOat the start of any newly addedprintk()calls, so this and subsequent patches will also addKERN_INFO.Signed-off-by Chuck Lever <[email protected]>---
net/sunrpc/clnt.c | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-)net/sunrpc/clnt.c +12
-8@@ -1517,24 +1517,30 @@ struct rpc_task *rpc_call_null(struct rpc_clnt *clnt, struct rpc_cred *cred, intEXPORT_SYMBOL_GPL (rpc_call_null);#ifdef RPC_DEBUG +static void rpc_show_header (void ) +{ +printk (KERN_INFO "-pid- proc flgs status -client- -prog- --rqstp- " +"-timeout -rpcwait -action- ---ops--\n" ); +} +void rpc_show_tasks (void ) {struct rpc_clnt *clnt;struct rpc_task *t; +int header =0 ;spin_lock (&rpc_client_lock); -if (list_empty (&all_clients)) - goto out; -printk ("-pid- proc flgs status -client- -prog- --rqstp- -timeout " -"-rpcwait -action- ---ops--\n" );list_for_each_entry (clnt, &all_clients, cl_clients) { -if (list_empty (&clnt->cl_tasks)) -continue ;spin_lock (&clnt->cl_lock);list_for_each_entry (t, &clnt->cl_tasks, tk_task) {const char *rpc_waitq ="none" ;int proc; +if (!header) { +rpc_show_header (); + header++; + } +if (t->tk_msg.rpc_proc) proc = t->tk_msg.rpc_proc->p_proc;else @@ -1554,7 +1560,6 @@ void rpc_show_tasks(void) }spin_unlock (&clnt->cl_lock); } -out:spin_unlock (&rpc_client_lock); }#endif --To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 5/8 SUNRPC: Refactor rpc_show_tasks
In reply to a message not in the archiveClean up: move the logic that displays each task to its own function. This removes indentation and makes future changes easier.
---
net/sunrpc/clnt.c | 46 ++++++++++++++++++++++++---------------------- 1 files changed, 24 insertions(+), 22 deletions(-)
net/sunrpc/clnt.c +24 -22
@@ -1523,40 +1523,42 @@ static void rpc_show_header(void) "-timeout -rpcwait -action- ---ops--\n"); } +static void rpc_show_task (const struct rpc_clnt *clnt, +const struct rpc_task *task) +{ +const char *rpc_waitq ="none" ; +int proc =-1 ; + +if (task->tk_msg.rpc_proc) + proc = task->tk_msg.rpc_proc->p_proc; + +if (RPC_IS_QUEUED (task)) + rpc_waitq =rpc_qname (task->tk_waitqueue); + +printk (KERN_INFO "%5u %04d %04x %6d %8p %6d %8p %8ld %8s %8p %8p\n" , + task->tk_pid, proc, + task->tk_flags, task->tk_status, + clnt, clnt->cl_prog, + task->tk_rqstp, task->tk_timeout, + rpc_waitq, + task->tk_action, task->tk_ops); +} +void rpc_show_tasks (void ) {struct rpc_clnt *clnt; -struct rpc_task *t; +struct rpc_task *task;int header =0 ;spin_lock (&rpc_client_lock);list_for_each_entry (clnt, &all_clients, cl_clients) {spin_lock (&clnt->cl_lock); -list_for_each_entry (t, &clnt->cl_tasks, tk_task) { -const char *rpc_waitq ="none" ; -int proc; - +list_for_each_entry (task, &clnt->cl_tasks, tk_task) {if (!header) {rpc_show_header (); header++; } - -if (t->tk_msg.rpc_proc) - proc = t->tk_msg.rpc_proc->p_proc; -else - proc =-1 ; - -if (RPC_IS_QUEUED (t)) - rpc_waitq =rpc_qname (t->tk_waitqueue); - -printk ("%5u %04d %04x %6d %8p %6d %8p %8ld %8s %8p %8p\n" , - t->tk_pid, proc, - t->tk_flags, t->tk_status, - t->tk_client, - (t->tk_client ? t->tk_client->cl_prog :0 ), - t->tk_rqstp, t->tk_timeout, - rpc_waitq, - t->tk_action, t->tk_ops); +rpc_show_task (clnt, task); }spin_unlock (&clnt->cl_lock); }
PATCH 6/8 SUNRPC: Add second output line for each RPC task in rpc_show_tasks
In reply to a message not in the archiveAdd a second output line displayed for each RPC task shown via rpc_show_tasks. This second line is for non-columnar variable-length data (like the name of the RPC wait queue the task is waiting on, or the procedure name).
---
net/sunrpc/clnt.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-)
net/sunrpc/clnt.c +10 -10
@@ -1519,29 +1519,29 @@ EXPORT_SYMBOL_GPL(rpc_call_null);#ifdef RPC_DEBUG static void rpc_show_header (void ) { -printk (KERN_INFO "-pid- proc flgs status -client- -prog- --rqstp- " -"-timeout -rpcwait -action- ---ops--\n" ); +printk (KERN_INFO "-pid- flgs status -client- --rqstp- " +"-timeout -action- ---ops--\n" ); }static void rpc_show_task (const struct rpc_clnt *clnt,const struct rpc_task *task) {const char *rpc_waitq ="none" ; -int proc =-1 ; +const char *proc ="unspecified" ;if (task->tk_msg.rpc_proc) - proc = task->tk_msg.rpc_proc->p_proc; + proc = task->tk_msg.rpc_proc->p_name;if (RPC_IS_QUEUED (task)) rpc_waitq =rpc_qname (task->tk_waitqueue); -printk (KERN_INFO "%5u %04d %04x %6d %8p %6d %8p %8ld %8s %8p %8p\n" , - task->tk_pid, proc, - task->tk_flags, task->tk_status, - clnt, clnt->cl_prog, - task->tk_rqstp, task->tk_timeout, - rpc_waitq, +printk (KERN_INFO "%5u %04x %6d %8p %8p %8ld %8p %8p\n" , + task->tk_pid, task->tk_flags, task->tk_status, + clnt, task->tk_rqstp, task->tk_timeout, task->tk_action, task->tk_ops); + +printk (KERN_INFO " prog: %s%u proc: %s waitq: %s\n" , + clnt->cl_protname, clnt->cl_vers, proc, rpc_waitq); }void rpc_show_tasks (void )
A message that is not in the archive (sent off-list or not yet received): 20080518021650.8366.96474.stgit-ewv44WTpT0t9HhUboXbp9zCvJB+x5qRC@public.gmane.org
Re: [PATCH 6/8] SUNRPC: Add second output line for each RPC task in rpc_show_tasks
Quoted 4 lines · Chuck Lever
Add a second output line displayed for each RPC task shown via
rpc_show_tasks. This second line is for non-columnar variable-length data (like the name of the RPC wait queue the task is waiting on, or the procedure name).
Maybe sample before and after output would help?
--b.
Quoted 57 lines
Signed-off-by Chuck Lever <[email protected]>---
net/sunrpc/clnt.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-)net/sunrpc/clnt.c +10
-11@@ -1519,29 +1519,29 @@ EXPORT_SYMBOL_GPL(rpc_call_null);#ifdef RPC_DEBUG static void rpc_show_header (void ) { -printk (KERN_INFO "-pid- proc flgs status -client- -prog- --rqstp- " -"-timeout -rpcwait -action- ---ops--\n" ); +printk (KERN_INFO "-pid- flgs status -client- --rqstp- " +"-timeout -action- ---ops--\n" ); }static void rpc_show_task (const struct rpc_clnt *clnt,const struct rpc_task *task) {const char *rpc_waitq ="none" ; -int proc =-1 ; +const char *proc ="unspecified" ;if (task->tk_msg.rpc_proc) - proc = task->tk_msg.rpc_proc->p_proc; + proc = task->tk_msg.rpc_proc->p_name;if (RPC_IS_QUEUED (task)) rpc_waitq =rpc_qname (task->tk_waitqueue); -printk (KERN_INFO "%5u %04d %04x %6d %8p %6d %8p %8ld %8s %8p %8p\n" , - task->tk_pid, proc, - task->tk_flags, task->tk_status, - clnt, clnt->cl_prog, - task->tk_rqstp, task->tk_timeout, - rpc_waitq, +printk (KERN_INFO "%5u %04x %6d %8p %8p %8ld %8p %8p\n" , + task->tk_pid, task->tk_flags, task->tk_status, + clnt, task->tk_rqstp, task->tk_timeout, task->tk_action, task->tk_ops); + +printk (KERN_INFO " prog: %s%u proc: %s waitq: %s\n" , + clnt->cl_protname, clnt->cl_vers, proc, rpc_waitq); }void rpc_show_tasks (void ) --To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 6/8] SUNRPC: Add second output line for each RPC task in rpc_show_tasks
In reply to a message not in the archiveQuoted 4 lines · Chuck Lever
Add a second output line displayed for each RPC task shown via
rpc_show_tasks. This second line is for non-columnar variable-length data (like the name of the RPC wait queue the task is waiting on, or the procedure name).
I don't really agree with this: it makes the output harder to parse rather than easier. grep, awk and friends don't cope well with multi-line data...
Signature · 6 lines
Trond Myklebust Linux NFS client maintainer NetApp [email protected] www.netapp.com
Re: [PATCH 6/8] SUNRPC: Add second output line for each RPC task in rpc_show_tasks
Quoted 9 lines · Trond Myklebust
Quoted 4 lines · Chuck Lever
Add a second output line displayed for each RPC task shown via
rpc_show_tasks. This second line is for non-columnar variable-length data (like the name of the RPC wait queue the task is waiting on, or the procedure name).I don't really agree with this: it makes the output harder to parse rather than easier. grep, awk and friends don't cope well with multi-line data...
Would it be better to put it all on one line, but the variable length items are at the end and don't get a column header?
--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com
Re: [PATCH 6/8] SUNRPC: Add second output line for each RPC task in rpc_show_tasks
Quoted 7 lines · Chuck Lever
Quoted 6 lines · Trond Myklebust
Quoted 4 lines · Chuck Lever
Add a second output line displayed for each RPC task shown via
rpc_show_tasks. This second line is for non-columnar variable-length data (like the name of the RPC wait queue the task is waiting on, or the procedure name).
Quoted 6 lines
Quoted 3 lines
I don't really agree with this: it makes the output harder to parse rather than easier. grep, awk and friends don't cope well with multi-line data...
Would it be better to put it all on one line, but the variable length items are at the end and don't get a column header?
That would make it easier, but why the change in format in the first place? This is developer-level debugging info: it is not designed for user comfort.
Signature · 6 lines
Trond Myklebust Linux NFS client maintainer NetApp [email protected] www.netapp.com
Re: [PATCH 6/8] SUNRPC: Add second output line for each RPC task in rpc_show_tasks
Quoted 12 lines · Trond Myklebust
Quoted 11 lines · Chuck Lever
Quoted 9 lines · Trond Myklebust
Quoted 4 lines · Chuck Lever
Add a second output line displayed for each RPC task shown via
rpc_show_tasks. This second line is for non-columnar variable-length data (like the name of the RPC wait queue the task is waiting on, or the procedure name).I don't really agree with this: it makes the output harder to parse rather than easier. grep, awk and friends don't cope well with multi-line data...
Quoted 6 lines
Quoted 2 lines
Would it be better to put it all on one line, but the variable length items are at the end and don't get a column header?
That would make it easier, but why the change in format in the first place? This is developer-level debugging info: it is not designed for user comfort.
Are developers not also users? If you prick us, do we not bleed? :-)
We already have a variable length field for the RPC queue name, and integer overflows in the other items, which often cause the displayed columns not to line up. This becomes headache-inducing when looking at more than a handful of RPC tasks.
The patch series changes the rpc_show_tasks output to display a procedure name instead of a number, a program name and version instead of numbers, and to use a symbolic name instead of a function address for displaying tk_action.
In other words, it makes the output much easier to parse for the overworked humans who have to use this interface for very low cost in the kernel. That information, it turns out, was mostly already available.
Given that we would then have multiple variable-length fields, it seemed logical to me to move all of the variable length items out of the columns.
--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com
PATCH 7/8 SUNRPC: Rename "call_" functions that are no longer FSM states
In reply to a message not in the archiveThe RPC client uses a finite state machine to move RPC tasks through each step of an RPC request. Each state is contained in a function in net/sunrpc/clnt.c, and named call_foo.
Some of the functions named call_foo have changed over the past few years and are no longer states in the FSM. These include: call_encode, call_header, and call_verify. As a clean up, rename the functions that have changed.
---
net/sunrpc/clnt.c | 35 ++++++++++++++--------------------- 1 files changed, 14 insertions(+), 21 deletions(-)
net/sunrpc/clnt.c +14 -21
@@ -58,7 +58,6 @@ static void call_start(struct rpc_task *task);static void call_reserve (struct rpc_task *task);static void call_reserveresult (struct rpc_task *task);static void call_allocate (struct rpc_task *task); -static void call_encode (struct rpc_task *task);static void call_decode (struct rpc_task *task);static void call_bind (struct rpc_task *task);static void call_bind_status (struct rpc_task *task);
@@ -70,9 +69,9 @@ static void call_refreshresult(struct rpc_task *task);static void call_timeout (struct rpc_task *task);static void call_connect (struct rpc_task *task);static void call_connect_status (struct rpc_task *task); -static __be32 *call_header (struct rpc_task *task); -static __be32 *call_verify (struct rpc_task *task); +static __be32 *rpc_encode_header (struct rpc_task *task); +static __be32 *rpc_verify_header (struct rpc_task *task);static int rpc_ping (struct rpc_clnt *clnt,int flags);static void rpc_register_client (struct rpc_clnt *clnt)
@@ -861,7 +860,7 @@ rpc_xdr_buf_init(struct xdr_buf *buf, void *start, size_t len)* 3. Encode arguments of an RPC call */ static void -call_encode (struct rpc_task *task) +rpc_xdr_encode (struct rpc_task *task) {struct rpc_rqst *req = task->tk_rqstp;kxdrproc_t encode;
@@ -876,13 +875,14 @@ call_encode(struct rpc_task *task) (char *)req->rq_buffer + req->rq_callsize, req->rq_rcvsize); -/* Encode header and provided arguments */ - encode = task->tk_msg.rpc_proc->p_encode; -if (!(p =call_header (task))) { -printk (KERN_INFO "RPC: call_header failed, exit EIO\n" ); + p =rpc_encode_header (task); +if (p ==NULL ) { +printk (KERN_INFO "RPC: couldn't encode RPC header, exit EIO\n" );rpc_exit (task, -EIO );return ; } + + encode = task->tk_msg.rpc_proc->p_encode;if (encode ==NULL )return ;
@@ -1046,7 +1046,7 @@ call_transmit(struct rpc_task *task)/* Encode here so that rpcsec_gss can use correct sequence number. */ if (rpc_task_need_encode (task)) {BUG_ON (task->tk_rqstp->rq_bytes_sent !=0 ); -call_encode (task); +rpc_xdr_encode (task);/* Did the encode result in an error condition? */ if (task->tk_status !=0 )return ;
@@ -1224,8 +1224,7 @@ call_decode(struct rpc_task *task) goto out_retry; } -/* Verify the RPC header */ - p =call_verify (task); + p =rpc_verify_header (task);if (IS_ERR (p)) {if (p ==ERR_PTR (-EAGAIN )) goto out_retry;
@@ -1243,7 +1242,7 @@ call_decode(struct rpc_task *task)return ; out_retry: task->tk_status =0 ; -/* Note: call_verify() may have freed the RPC slot */ +/* Note: rpc_verify_header() may have freed the RPC slot */ if (task->tk_rqstp == req) { req->rq_received = req->rq_rcv_buf.len =0 ;if (task->tk_client->cl_discrtry)
@@ -1290,11 +1289,8 @@ call_refreshresult(struct rpc_task *task)return ; } -/* -* Call header serialization -*/ static __be32 * -call_header (struct rpc_task *task) +rpc_encode_header (struct rpc_task *task) {struct rpc_clnt *clnt = task->tk_client;struct rpc_rqst *req = task->tk_rqstp;
@@ -1314,11 +1310,8 @@ call_header(struct rpc_task *task)return p; } -/* -* Reply header verification -*/ static __be32 * -call_verify (struct rpc_task *task) +rpc_verify_header (struct rpc_task *task) {struct kvec *iov = &task->tk_rqstp->rq_rcv_buf.head[0 ];int len = task->tk_rqstp->rq_rcv_buf.len >>2 ;
@@ -1392,7 +1385,7 @@ call_verify(struct rpc_task *task) task->tk_action = call_bind; goto out_retry;case RPC_AUTH_TOOWEAK : -printk (KERN_NOTICE "call_verify: server %s requires stronger " +printk (KERN_NOTICE "RPC: server %s requires stronger " "authentication.\n" , task->tk_client->cl_server);break ;default :
PATCH 8/8 SUNRPC: Display symbolic function addresses in rpc_show_tasks
In reply to a message not in the archiveFor each running RPC task, rpc_show_tasks displays the hex address of the call_foo function that the task is running. To make debugging slightly nicer, let's display the call_foo function name instead.
---
include/linux/sunrpc/sched.h | 1 + net/sunrpc/clnt.c | 54 ++++++++++++++++++++++++++++++++++++++---- net/sunrpc/sched.c | 2 +- 3 files changed, 51 insertions(+), 6 deletions(-)
include/linux/sunrpc/sched.h +1 -0
@@ -212,6 +212,7 @@ struct rpc_wait_queue {struct rpc_task *rpc_new_task (const struct rpc_task_setup *);struct rpc_task *rpc_run_task (const struct rpc_task_setup *);void rpc_put_task (struct rpc_task *); +void rpc_prepare_task (struct rpc_task *);void rpc_exit_task (struct rpc_task *);void rpc_release_calldata (const struct rpc_call_ops *,void *);void rpc_killall_tasks (struct rpc_clnt *);
net/sunrpc/clnt.c +49 -5
72 lines not on this page · raw message
net/sunrpc/sched.c +1 -1
@@ -574,7 +574,7 @@ EXPORT_SYMBOL_GPL(rpc_delay);/* * Helper to call task->tk_ops->rpc_call_prepare */ -static void rpc_prepare_task (struct rpc_task *task) +void rpc_prepare_task (struct rpc_task *task) {lock_kernel (); task->tk_ops->rpc_call_prepare (task, task->tk_calldata);
A message that is not in the archive (sent off-list or not yet received): 20080518021614.8366.39102.stgit-ewv44WTpT0t9HhUboXbp9zCvJB+x5qRC@public.gmane.org
Quoted 6 lines · Chuck Lever
Clean up: refresh the help text for
Kconfigitems related to the NFS client. Remove obsolete URLs, and make the language consistent among the options.Also move the
ROOT_NFSconfig option next to the options related to the NFS client.
The changes make sense to me.--b.
Quoted 190 lines
Signed-off-by Chuck Lever <[email protected]>---
fs/Kconfig | 115 ++++++++++++++++++++++++++++++------------------------------ 1 files changed, 57 insertions(+), 58 deletions(-)fs/Kconfig +57
-59@@ -1544,10 +1544,6 @@ config UFS_FS The recently released UFS2 variant (used in FreeBSD 5.x) is READ-ONLY supported. - If you only intend to mount files from some other Unix over the - network using NFS, you don't need the UFS file system support (but - you need NFS file system support obviously). - Note that this option is generally not needed for floppies, since a good portable way to transport files and directories between unixes (and even other operating systems) is given by the tar program ("man@@ -1587,6 +1583,7 @@ menuconfig NETWORK_FILESYSTEMS Say Y here to get to see options for network filesystems and filesystem-related networking code, such as NFS daemon and RPCSEC security modules. + This option alone does not add any kernel code. If you say N, all options in this submenu will be skipped and@@ -1595,76 +1592,92 @@ menuconfig NETWORK_FILESYSTEMS if NETWORK_FILESYSTEMS config NFS_FS - tristate "NFS file system support" + tristate "NFS client support" depends on INET select LOCKD select SUNRPC select NFS_ACL_SUPPORT if NFS_V3_ACL help - If you are connected to some other (usually local) Unix computer - (using SLIP, PLIP, PPP or Ethernet) and want to mount files residing - on that computer (the NFS server) using the Network File Sharing - protocol, say Y. "Mounting files" means that the client can access - the files with usual UNIX commands as if they were sitting on the - client's hard disk. For this to work, the server must run the - programs nfsd and mountd (but does not need to have NFS file system - support enabled in its kernel). NFS is explained in the Network - Administrator's Guide, available from - <http://www.tldp.org/docs.html#guide>, on its man page: "man - nfs", and in the NFS-HOWTO. - - A superior but less widely used alternative to NFS is provided by - the Coda file system; see "Coda file system support" below. + Choose Y here if you want to access files residing on other + computers using Sun's Network File System protocol. To compile + this file system support as a module, choose M here: the module + will be called nfs. - If you say Y here, you should have said Y to TCP/IP networking also. - This option would enlarge your kernel by about 27 KB. + To mount file systems exported by NFS servers, you also need to + install the user space mount.nfs command which can be found in + the Linux nfs-utils package, available from http://linux-nfs.org/. + Information about using the mount command is available in the + mount(8) man page. More detail about the Linux NFS client + implementation is available via the nfs(5) man page. - To compile this file system support as a module, choose M here: the - module will be called nfs. + Below you can choose which versions of the NFS protocol are + available in the kernel to mount NFS servers. Support for NFS + version 2 (RFC 1094) is always available when NFS_FS is selected. - If you are configuring a diskless machine which will mount its root - file system over NFS at boot time, say Y here and to "Kernel - level IP autoconfiguration" above and to "Root file system on NFS" - below. You cannot compile this driver as a module in this case. - There are two packages designed for booting diskless machines over - the net: netboot, available from - <http://ftp1.sourceforge.net/netboot/>, and Etherboot, - available from <http://ftp1.sourceforge.net/etherboot/>. + To configure a system which mounts its root file system via NFS + at boot time, say Y here, select "Kernel level IP + autoconfiguration" in the NETWORK menu, and select "Root file + system on NFS" below. You cannot compile this file system as a + module in this case. - If you don't know what all this is about, say N. + If unsure, say N. config NFS_V3 - bool "Provide NFSv3 client support" + bool "NFS client support for NFS version 3" depends on NFS_FS help - Say Y here if you want your NFS client to be able to speak version - 3 of the NFS protocol. + This option enables support for version 3 of the NFS protocol + (RFC 1813) in the kernel's NFS client. If unsure, say Y. config NFS_V3_ACL - bool "Provide client support for the NFSv3 ACL protocol extension" + bool "NFS client support for the NFSv3 ACL protocol extension" depends on NFS_V3 help - Implement the NFSv3 ACL protocol extension for manipulating POSIX - Access Control Lists. The server should also be compiled with - the NFSv3 ACL protocol extension; see the CONFIG_NFSD_V3_ACL option. + Some NFS servers support an auxiliary NFSv3 ACL protocol that + Sun added to Solaris but never became an official part of the + NFS version 3 protocol. This protocol extension allows + applications on NFS clients to manipulate POSIX Access Control + Lists on files residing on NFS servers. NFS servers enforce + ACLs on local files whether this protocol is available or not. + + Choose Y here if your NFS server supports the Solaris NFSv3 ACL + protocol extension and you want your NFS client to allow + applications to access and modify ACLs on files on the server. + + Most NFS servers don't support the Solaris NFSv3 ACL protocol + extension. You can choose N here or specify the "noacl" mount + option to prevent your NFS client from trying to use the NFSv3 + ACL protocol. If unsure, say N. config NFS_V4 - bool "Provide NFSv4 client support (EXPERIMENTAL)" + bool "NFS client support for NFS version 4 (EXPERIMENTAL)" depends on NFS_FS && EXPERIMENTAL select RPCSEC_GSS_KRB5 help - Say Y here if you want your NFS client to be able to speak the newer - version 4 of the NFS protocol. + This option enables support for version 4 of the NFS protocol + (RFC 3530) in the kernel's NFS client. - Note: Requires auxiliary userspace daemons which may be found on - http://www.citi.umich.edu/projects/nfsv4/ + To mount NFS servers using NFSv4, you also need to install user + space programs which can be found in the Linux nfs-utils package, + available from http://linux-nfs.org/. If unsure, say N. +config ROOT_NFS + bool "Root file system on NFS" + depends on NFS_FS=y && IP_PNP + help + If you want your system to mount its root file system via NFS, + choose Y here. This is common practice for managing systems + without local permanent storage. For details, read + <file:Documentation/filesystems/nfsroot.txt>. + + Most people say N here. + config NFSD tristate "NFS server support" depends on INET@@ -1746,20 +1759,6 @@ config NFSD_V4 If unsure, say N. -config ROOT_NFS - bool "Root file system on NFS" - depends on NFS_FS=y && IP_PNP - help - If you want your Linux box to mount its whole root file system (the - one containing the directory /) from some other computer over the - net via NFS (presumably because your box doesn't have a hard disk), - say Y. Read <file:Documentation/filesystems/nfsroot.txt> for - details. It is likely that in this case, you also want to say Y to - "Kernel level IP autoconfiguration" so that your box can discover - its network address at boot time. - - Most people say N here. - config LOCKD tristate --To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 136 lines · Chuck Lever
Clean up: refresh the help text for
Kconfigitems related to the NFS client. Remove obsolete URLs, and make the language consistent among the options.Also move the
ROOT_NFSconfig option next to the options related to the NFS client.Signed-off-by Chuck Lever <[email protected]>---
fs/Kconfig | 115 ++++++++++++++++++++++++++++++------------------------------ 1 files changed, 57 insertions(+), 58 deletions(-)fs/Kconfig +40
-39@@ -1544,10 +1544,6 @@ config UFS_FS The recently released UFS2 variant (used in FreeBSD 5.x) is READ-ONLY supported. - If you only intend to mount files from some other Unix over the - network using NFS, you don't need the UFS file system support (but - you need NFS file system support obviously). - Note that this option is generally not needed for floppies, since a good portable way to transport files and directories between unixes (and even other operating systems) is given by the tar program ("man@@ -1587,6 +1583,7 @@ menuconfig NETWORK_FILESYSTEMS Say Y here to get to see options for network filesystems and filesystem-related networking code, such as NFS daemon and RPCSEC security modules. + This option alone does not add any kernel code. If you say N, all options in this submenu will be skipped and@@ -1595,76 +1592,92 @@ menuconfig NETWORK_FILESYSTEMS if NETWORK_FILESYSTEMS config NFS_FS - tristate "NFS file system support" + tristate "NFS client support" depends on INET select LOCKD select SUNRPC select NFS_ACL_SUPPORT if NFS_V3_ACL help - If you are connected to some other (usually local) Unix computer - (using SLIP, PLIP, PPP or Ethernet) and want to mount files residing - on that computer (the NFS server) using the Network File Sharing - protocol, say Y. "Mounting files" means that the client can access - the files with usual UNIX commands as if they were sitting on the - client's hard disk. For this to work, the server must run the - programs nfsd and mountd (but does not need to have NFS file system - support enabled in its kernel). NFS is explained in the Network - Administrator's Guide, available from - <http://www.tldp.org/docs.html#guide>, on its man page: "man - nfs", and in the NFS-HOWTO. - - A superior but less widely used alternative to NFS is provided by - the Coda file system; see "Coda file system support" below. + Choose Y here if you want to access files residing on other + computers using Sun's Network File System protocol. To compile + this file system support as a module, choose M here: the module + will be called nfs. - If you say Y here, you should have said Y to TCP/IP networking also. - This option would enlarge your kernel by about 27 KB. + To mount file systems exported by NFS servers, you also need to + install the user space mount.nfs command which can be found in + the Linux nfs-utils package, available from http://linux-nfs.org/. + Information about using the mount command is available in the + mount(8) man page. More detail about the Linux NFS client + implementation is available via the nfs(5) man page. - To compile this file system support as a module, choose M here: the - module will be called nfs. + Below you can choose which versions of the NFS protocol are + available in the kernel to mount NFS servers. Support for NFS + version 2 (RFC 1094) is always available when NFS_FS is selected. - If you are configuring a diskless machine which will mount its root - file system over NFS at boot time, say Y here and to "Kernel - level IP autoconfiguration" above and to "Root file system on NFS" - below. You cannot compile this driver as a module in this case. - There are two packages designed for booting diskless machines over - the net: netboot, available from - <http://ftp1.sourceforge.net/netboot/>, and Etherboot, - available from <http://ftp1.sourceforge.net/etherboot/>. + To configure a system which mounts its root file system via NFS + at boot time, say Y here, select "Kernel level IP + autoconfiguration" in the NETWORK menu, and select "Root file + system on NFS" below. You cannot compile this file system as a + module in this case. - If you don't know what all this is about, say N. + If unsure, say N. config NFS_V3 - bool "Provide NFSv3 client support" + bool "NFS client support for NFS version 3" depends on NFS_FS help - Say Y here if you want your NFS client to be able to speak version - 3 of the NFS protocol. + This option enables support for version 3 of the NFS protocol + (RFC 1813) in the kernel's NFS client. If unsure, say Y. config NFS_V3_ACL - bool "Provide client support for the NFSv3 ACL protocol extension" + bool "NFS client support for the NFSv3 ACL protocol extension" depends on NFS_V3 help - Implement the NFSv3 ACL protocol extension for manipulating POSIX - Access Control Lists. The server should also be compiled with - the NFSv3 ACL protocol extension; see the CONFIG_NFSD_V3_ACL option. + Some NFS servers support an auxiliary NFSv3 ACL protocol that + Sun added to Solaris but never became an official part of the + NFS version 3 protocol. This protocol extension allows + applications on NFS clients to manipulate POSIX Access Control + Lists on files residing on NFS servers. NFS servers enforce + ACLs on local files whether this protocol is available or not. + + Choose Y here if your NFS server supports the Solaris NFSv3 ACL + protocol extension and you want your NFS client to allow + applications to access and modify ACLs on files on the server. + + Most NFS servers don't support the Solaris NFSv3 ACL protocol + extension. You can choose N here or specify the "noacl" mount + option to prevent your NFS client from trying to use the NFSv3 + ACL protocol. If unsure, say N.
fs/Kconfig menuconfig NETWORK_FILESYSTEMS · line 1661
Quoted 10 lines
fs/Kconfig +2
-3config NFS_V4 - bool "Provide NFSv4 client support (EXPERIMENTAL)" + bool "NFS client support for NFS version 4 (EXPERIMENTAL)" depends on NFS_FS && EXPERIMENTAL select RPCSEC_GSS_KRB5 help - Say Y here if you want your NFS client to be able to speak the newer - version 4 of the NFS protocol. + This option enables support for version 4 of the NFS protocol
By the way, this triggers a "trailing whitespace" complaint.
--b.
Quoted 50 lines
fs/Kconfig +15
-17+ (RFC 3530) in the kernel's NFS client. - Note: Requires auxiliary userspace daemons which may be found on - http://www.citi.umich.edu/projects/nfsv4/ + To mount NFS servers using NFSv4, you also need to install user + space programs which can be found in the Linux nfs-utils package, + available from http://linux-nfs.org/. If unsure, say N. +config ROOT_NFS + bool "Root file system on NFS" + depends on NFS_FS=y && IP_PNP + help + If you want your system to mount its root file system via NFS, + choose Y here. This is common practice for managing systems + without local permanent storage. For details, read + <file:Documentation/filesystems/nfsroot.txt>. + + Most people say N here. + config NFSD tristate "NFS server support" depends on INET@@ -1746,20 +1759,6 @@ config NFSD_V4 If unsure, say N. -config ROOT_NFS - bool "Root file system on NFS" - depends on NFS_FS=y && IP_PNP - help - If you want your Linux box to mount its whole root file system (the - one containing the directory /) from some other computer over the - net via NFS (presumably because your box doesn't have a hard disk), - say Y. Read <file:Documentation/filesystems/nfsroot.txt> for - details. It is likely that in this case, you also want to say Y to - "Kernel level IP autoconfiguration" so that your box can discover - its network address at boot time. - - Most people say N here. - config LOCKD tristate --To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 131 lines · J. Bruce Fields
Quoted 130 lines · Chuck Lever
Clean up: refresh the help text for
Kconfigitems related to the NFS client. Remove obsolete URLs, and make the language consistent among the options.Also move the
ROOT_NFSconfig option next to the options related to the NFS client.Signed-off-by Chuck Lever <[email protected]>---
fs/Kconfig | 115 +++++++++++++++++++++++++++++
+------------------------------1 files changed, 57 insertions(+), 58 deletions(-)fs/Kconfig +0
-0@@ -1595,76 +1592,92 @@ menuconfig NETWORK_FILESYSTEMSif
NETWORK_FILESYSTEMSconfig
NFS_FSfs/Kconfig +1
-1- tristate "NFS file system support" + tristate "NFS client support"depends on INET
select LOCKD
select SUNRPC
selectNFS_ACL_SUPPORTifNFS_V3_ACL
helpfs/Kconfig +0
-2- If you are connected to some other (usually local) Unix computer - (using SLIP, PLIP, PPP or Ethernet) and want to mount filesresiding
fs/Kconfig +0
-2- on that computer (the NFS server) using the Network File Sharing - protocol, say Y. "Mounting files" means that the client canaccess
fs/Kconfig +0
-3- the files with usual UNIX commands as if they were sitting on the - client's hard disk. For this to work, the server must run the - programs nfsd and mountd (but does not need to have NFS filesystem
fs/Kconfig +4
-8- support enabled in its kernel). NFS is explained in the Network - Administrator's Guide, available from - <http://www.tldp.org/docs.html#guide>, on its man page: "man - nfs", and in the NFS-HOWTO. - - A superior but less widely used alternative to NFS is provided by - the Coda file system; see "Coda file system support" below. + Choose Y here if you want to access files residing on other + computers using Sun's Network File System protocol. To compile + this file system support as a module, choose M here: the module + will be called nfs. - If you say Y here, you should have said Y to TCP/IP networkingalso.
fs/Kconfig +3
-1- This option would enlarge your kernel by about 27 KB. + To mount file systems exported by NFS servers, you also need to + install the user space mount.nfs command which can be found in + the Linux nfs-utils package, available from http://linux-nfs.org/.
fs/Kconfig +3
-1+ Information about using the mount command is available in the + mount(8) man page. More detail about the Linux NFS client + implementation is available via the nfs(5) man page. - To compile this file system support as a module, choose M here:the
fs/Kconfig +3
-2- module will be called nfs. + Below you can choose which versions of the NFS protocol are + available in the kernel to mount NFS servers. Support for NFS + version 2 (RFC 1094) is always available when NFS_FS is selected. - If you are configuring a diskless machine which will mount itsroot
fs/Kconfig +0
-2- file system over NFS at boot time, say Y here and to "Kernel - level IP autoconfiguration" above and to "Root file system onNFS"
fs/Kconfig +0
-2- below. You cannot compile this driver as a module in this case. - There are two packages designed for booting diskless machinesover
fs/Kconfig +6
-4- the net: netboot, available from - <http://ftp1.sourceforge.net/netboot/>, and Etherboot, - available from <http://ftp1.sourceforge.net/etherboot/>. + To configure a system which mounts its root file system via NFS + at boot time, say Y here, select "Kernel level IP + autoconfiguration" in the NETWORK menu, and select "Root file + system on NFS" below. You cannot compile this file system as a + module in this case. - If you don't know what all this is about, say N. + If unsure, say N.config
NFS_V3fs/Kconfig +1
-1- bool "Provide NFSv3 client support" + bool "NFS client support for NFS version 3"depends on
NFS_FS
helpfs/Kconfig +0
-1- Say Y here if you want your NFS client to be able to speakversion
fs/Kconfig +2
-1- 3 of the NFS protocol. + This option enables support for version 3 of the NFS protocol + (RFC 1813) in the kernel's NFS client.If unsure, say Y.
config
NFS_V3_ACLfs/Kconfig +1
-1- bool "Provide client support for the NFSv3 ACL protocol extension" + bool "NFS client support for the NFSv3 ACL protocol extension"depends on
NFS_V3
helpfs/Kconfig +0
-3- Implement the NFSv3 ACL protocol extension for manipulating POSIX - Access Control Lists. The server should also be compiled with - the NFSv3 ACL protocol extension; see the CONFIG_NFSD_V3_ACLoption.
fs/Kconfig +15
-0+ Some NFS servers support an auxiliary NFSv3 ACL protocol that + Sun added to Solaris but never became an official part of the + NFS version 3 protocol. This protocol extension allows + applications on NFS clients to manipulate POSIX Access Control + Lists on files residing on NFS servers. NFS servers enforce + ACLs on local files whether this protocol is available or not. + + Choose Y here if your NFS server supports the Solaris NFSv3 ACL + protocol extension and you want your NFS client to allow + applications to access and modify ACLs on files on the server. + + Most NFS servers don't support the Solaris NFSv3 ACL protocol + extension. You can choose N here or specify the "noacl" mount + option to prevent your NFS client from trying to use the NFSv3 + ACL protocol.If unsure, say N.
Quoted 12 lines
fs/Kconfig menuconfig NETWORK_FILESYSTEMS · line 1661
Quoted 10 lines
config
NFS_V4fs/Kconfig +1
-1- bool "Provide NFSv4 client support (EXPERIMENTAL)" + bool "NFS client support for NFS version 4 (EXPERIMENTAL)"depends on NFS_FS && EXPERIMENTAL select RPCSEC_GSS_KRB5 helpfs/Kconfig +0
-1- Say Y here if you want your NFS client to be able to speak thenewer
fs/Kconfig +1
-1- version 4 of the NFS protocol. + This option enables support for version 4 of the NFS protocolBy the way, this triggers a "trailing whitespace" complaint.
Weird. I did run this by checkpatch.pl and I didn't see any warnings.
Trond, let me know if you want me to resubmit.
--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com
Quoted 3 lines · Chuck Lever
Clean up: refresh the help text for
Kconfigitems related to the NFS client. Remove obsolete URLs, and make the language consistent among the options.
I like the patch for no other reason than (finally) getting rid of the CODA nasty-gram:
fs/Kconfig menuconfig NETWORK_FILESYSTEMS · line 1617
Quoted 2 lines
fs/Kconfig +0
-2- A superior but less widely used alternative to NFS is provided by - the Coda file system; see "Coda file system support" below.
But I do have a comment - I think calling it "Sun's" protocol is unnecessary. It's an IETF standard, and widely implemented.
fs/Kconfig menuconfig NETWORK_FILESYSTEMS · line 1626
Quoted 9 lines
fs/Kconfig +4
-0+ Choose Y here if you want to access files residing on other + computers using Sun's Network File System protocol. To compile + this file system support as a module, choose M here: the module + will be called nfs.config
NFS_V3fs/Kconfig +1
-1- bool "Provide NFSv3 client support" + bool "NFS client support for NFS version 3"
The new option says NFS twice.
fs/Kconfig menuconfig NETWORK_FILESYSTEMS · line 1630
Quoted 6 lines
depends on
NFS_FS
helpfs/Kconfig +2
-2- Say Y here if you want your NFS client to be able to speak version - 3 of the NFS protocol. + This option enables support for version 3 of the NFS protocol + (RFC 1813) in the kernel's NFS client.
And twice again.
Quoted 4 lines
config
NFS_V4fs/Kconfig +1
-1- bool "Provide NFSv4 client support (EXPERIMENTAL)" + bool "NFS client support for NFS version 4 (EXPERIMENTAL)"depends on NFS_FS && EXPERIMENTAL
Is it necessary to say "(EXPERIMENTAL)"? There are many other kernel options that don't, but in fact are dependent.
Tom.
A message that is not in the archive (sent off-list or not yet received): RTPCLUEXC1-PRDXzzAg00000113-rtwIt2gI0FxT+ZUat5FNkAK/[email protected]
Quoted 5 lines · Thomas
Quoted 3 lines · Chuck Lever
Clean up: refresh the help text for
Kconfigitems related to the NFS client. Remove obsolete URLs, and make the language consistent among the options.
Quoted 8 lines
I like the patch for no other reason than (finally) getting rid of the CODA nasty-gram:
fs/Kconfig menuconfig NETWORK_FILESYSTEMS · line 1617
Quoted 2 lines
fs/Kconfig +0
-2- A superior but less widely used alternative to NFS is provided by - the Coda file system; see "Coda file system support" below.But I do have a comment - I think calling it "Sun's" protocol is unnecessary. It's an IETF standard, and widely implemented.
I think that's why this patch was originally rejected. Trond didn't like the fact that I said IETF standard, but I don't recall the exact details.
Quoted 11 lines
fs/Kconfig menuconfig NETWORK_FILESYSTEMS · line 1626
Quoted 9 lines
fs/Kconfig +4
-0+ Choose Y here if you want to access files residing on other + computers using Sun's Network File System protocol. To compile + this file system support as a module, choose M here: the module + will be called nfs.config
NFS_V3fs/Kconfig +1
-1- bool "Provide NFSv3 client support" + bool "NFS client support for NFS version 3"The new option says NFS twice.
Yes, but I think it makes the description more precise. It could say "NFS client support for version 3" or "Client support for NFS version 3". I think both of those choices are ambiguous in one way or another.
Quoted 7 lines
Quoted 4 lines
config
NFS_V4fs/Kconfig +1
-1- bool "Provide NFSv4 client support (EXPERIMENTAL)" + bool "NFS client support for NFS version 4 (EXPERIMENTAL)"depends on NFS_FS && EXPERIMENTALIs it necessary to say "(EXPERIMENTAL)"? There are many other kernel options that don't, but in fact are dependent.
It's usually good to mark these as experimental, and it has been convention for a long while, but I don't see a requirement for it.
--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com
Quoted 3 lines · Chuck Lever
I think that's why this patch was originally rejected. Trond didn't like the fact that I said IETF standard, but I don't recall the exact details.
Ok, I guess I'm with you, but don't have a strong issue with it. Again, I'm mainly just glad the NFS_FS option doesn't say to use CODA instead. EXPERIMENTAL and Sun's protocol - at least it's moving up in the pecking order. :-)
Tom.
cover First set of 2.6.27 patches
Hi Trond-
Here are the first eight patches I'd like you to consider for 2.6.27. The Kconfig patch was part of the Kconfig clean-up series included in 2.6.26, but was somehow missed.
The SUNRPC patches add some enhancements to RPC debugging.
---
Chuck Lever (8):
SUNRPC: Display symbolic function addresses in rpc_show_tasks
SUNRPC: Rename "call_" functions that are no longer FSM states
SUNRPC: Add second output line for each RPC task in rpc_show_tasks
SUNRPC: Refactor rpc_show_tasks
SUNRPC: Don't display the rpc_show_tasks header if there are no tasks
SUNRPC: Use RPC procedure name in call_verify
SUNRPC: Use RPC procedure name in call_start
NFS: Update help text for CONFIG_NFS_FS
fs/Kconfig | 115 ++++++++++++++++---------------- include/linux/sunrpc/sched.h | 1 net/sunrpc/clnt.c | 150 +++++++++++++++++++++++++++--------------- net/sunrpc/sched.c | 2 - 4 files changed, 156 insertions(+), 112 deletions(-)
Signature · 1 line
Chuck Lever