mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
NFS: Add version registering framework
This patch adds in the code to track multiple versions of the NFS protocol. I created default structures for v2, v3 and v4 so that each version can continue to work while I convert them into kernel modules. I also removed the const parameter from the rpc_version array so that I can change it at runtime. Signed-off-by: Bryan Schumaker <bjschuma@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
a427b9ec4e
commit
ab7017a3a0
12 changed files with 283 additions and 61 deletions
|
@ -50,6 +50,7 @@
|
|||
#include "fscache.h"
|
||||
#include "dns_resolve.h"
|
||||
#include "pnfs.h"
|
||||
#include "nfs.h"
|
||||
#include "netns.h"
|
||||
|
||||
#define NFSDBG_FACILITY NFSDBG_VFS
|
||||
|
@ -1671,21 +1672,17 @@ static int __init init_nfs_fs(void)
|
|||
rpc_proc_register(&init_net, &nfs_rpcstat);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NFS_V4
|
||||
err = init_nfs_v4();
|
||||
err = nfs_register_versions();
|
||||
if (err)
|
||||
goto out1;
|
||||
#endif
|
||||
|
||||
if ((err = register_nfs_fs()) != 0)
|
||||
goto out0;
|
||||
|
||||
return 0;
|
||||
out0:
|
||||
#ifdef CONFIG_NFS_V4
|
||||
exit_nfs_v4();
|
||||
nfs_unregister_versions();
|
||||
out1:
|
||||
#endif
|
||||
#ifdef CONFIG_PROC_FS
|
||||
rpc_proc_unregister(&init_net, "nfs");
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue