blob: 0a9782c9171a6b45b2b05e0db1018e9a8f5cb76f [file] [log] [blame]
Bryan Schumakerab7017a2012-07-30 16:05:16 -04001/*
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,
Bryan Schumaker6a744902012-07-30 16:05:20 -040014 .sops = &nfs_sops,
Bryan Schumakerab7017a2012-07-30 16:05:16 -040015};
16
Bryan Schumakerddda8e02012-07-30 16:05:23 -040017static int __init init_nfs_v2(void)
Bryan Schumakerab7017a2012-07-30 16:05:16 -040018{
19 register_nfs_version(&nfs_v2);
20 return 0;
21}
22
Bryan Schumakerddda8e02012-07-30 16:05:23 -040023static void __exit exit_nfs_v2(void)
Bryan Schumakerab7017a2012-07-30 16:05:16 -040024{
25 unregister_nfs_version(&nfs_v2);
26}
Bryan Schumakerddda8e02012-07-30 16:05:23 -040027
28MODULE_LICENSE("GPL");
29
30module_init(init_nfs_v2);
31module_exit(exit_nfs_v2);