Loading...
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_v2 = {
10 .owner = THIS_MODULE,
11 .nfs_fs = &nfs_fs_type,
12 .rpc_vers = &nfs_version2,
13 .rpc_ops = &nfs_v2_clientops,
14 .sops = &nfs_sops,
15};
16
17static int __init init_nfs_v2(void)
18{
19 register_nfs_version(&nfs_v2);
20 return 0;
21}
22
23static void __exit exit_nfs_v2(void)
24{
25 unregister_nfs_version(&nfs_v2);
26}
27
28MODULE_LICENSE("GPL");
29
30module_init(init_nfs_v2);
31module_exit(exit_nfs_v2);
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 "nfs.h"
9
10static struct nfs_subversion nfs_v2 = {
11 .owner = THIS_MODULE,
12 .nfs_fs = &nfs_fs_type,
13 .rpc_vers = &nfs_version2,
14 .rpc_ops = &nfs_v2_clientops,
15 .sops = &nfs_sops,
16};
17
18static int __init init_nfs_v2(void)
19{
20 register_nfs_version(&nfs_v2);
21 return 0;
22}
23
24static void __exit exit_nfs_v2(void)
25{
26 unregister_nfs_version(&nfs_v2);
27}
28
29MODULE_DESCRIPTION("NFSv2 client support");
30MODULE_LICENSE("GPL");
31
32module_init(init_nfs_v2);
33module_exit(exit_nfs_v2);