mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
NFS: Create a root NFS directory in /sys/fs/nfs
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
parent
44942b4e45
commit
996bc4f405
4 changed files with 94 additions and 1 deletions
|
@ -51,6 +51,7 @@
|
|||
#include "pnfs.h"
|
||||
#include "nfs.h"
|
||||
#include "netns.h"
|
||||
#include "sysfs.h"
|
||||
|
||||
#include "nfstrace.h"
|
||||
|
||||
|
@ -2182,6 +2183,10 @@ static int __init init_nfs_fs(void)
|
|||
{
|
||||
int err;
|
||||
|
||||
err = nfs_sysfs_init();
|
||||
if (err < 0)
|
||||
goto out10;
|
||||
|
||||
err = register_pernet_subsys(&nfs_net_ops);
|
||||
if (err < 0)
|
||||
goto out9;
|
||||
|
@ -2245,6 +2250,8 @@ out7:
|
|||
out8:
|
||||
unregister_pernet_subsys(&nfs_net_ops);
|
||||
out9:
|
||||
nfs_sysfs_exit();
|
||||
out10:
|
||||
return err;
|
||||
}
|
||||
|
||||
|
@ -2261,6 +2268,7 @@ static void __exit exit_nfs_fs(void)
|
|||
unregister_nfs_fs();
|
||||
nfs_fs_proc_exit();
|
||||
nfsiod_stop();
|
||||
nfs_sysfs_exit();
|
||||
}
|
||||
|
||||
/* Not quite true; I just maintain it */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue