Loading...
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (c) 2012 Netapp, Inc. All rights reserved.
4 */
5#include <linux/module.h>
6#include <linux/nfs_fs.h>
7#include "internal.h"
8#include "nfs3_fs.h"
9#include "nfs.h"
10
11struct nfs_subversion nfs_v3 = {
12 .owner = THIS_MODULE,
13 .nfs_fs = &nfs_fs_type,
14 .rpc_vers = &nfs_version3,
15 .rpc_ops = &nfs_v3_clientops,
16 .sops = &nfs_sops,
17#ifdef CONFIG_NFS_V3_ACL
18 .xattr = nfs3_xattr_handlers,
19#endif
20};
21
22static int __init init_nfs_v3(void)
23{
24 register_nfs_version(&nfs_v3);
25 return 0;
26}
27
28static void __exit exit_nfs_v3(void)
29{
30 unregister_nfs_version(&nfs_v3);
31}
32
33MODULE_LICENSE("GPL");
34
35module_init(init_nfs_v3);
36module_exit(exit_nfs_v3);
1/*
2 * Copyright (c) 2012 Netapp, Inc. All rights reserved.
3 */
4#include <linux/module.h>
5#include <linux/nfs_fs.h>
6#include "internal.h"
7#include "nfs.h"
8
9static struct nfs_subversion nfs_v3 = {
10 .owner = THIS_MODULE,
11 .nfs_fs = &nfs_fs_type,
12 .rpc_vers = &nfs_version3,
13 .rpc_ops = &nfs_v3_clientops,
14 .sops = &nfs_sops,
15#ifdef CONFIG_NFS_V3_ACL
16 .xattr = nfs3_xattr_handlers,
17#endif
18};
19
20static int __init init_nfs_v3(void)
21{
22 register_nfs_version(&nfs_v3);
23 return 0;
24}
25
26static void __exit exit_nfs_v3(void)
27{
28 unregister_nfs_version(&nfs_v3);
29}
30
31MODULE_LICENSE("GPL");
32
33module_init(init_nfs_v3);
34module_exit(exit_nfs_v3);