blob: 5c4394e4656b61c9135105231dba03d9cad3d769 [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"
Anna Schumakercb8c20f2014-09-03 12:19:10 -04007#include "nfs3_fs.h"
Bryan Schumakerab7017a2012-07-30 16:05:16 -04008#include "nfs.h"
9
Peng Tao1a04c6e2014-05-30 18:15:57 +080010struct nfs_subversion nfs_v3 = {
Bryan Schumakerab7017a2012-07-30 16:05:16 -040011 .owner = THIS_MODULE,
12 .nfs_fs = &nfs_fs_type,
13 .rpc_vers = &nfs_version3,
14 .rpc_ops = &nfs_v3_clientops,
Bryan Schumaker6a744902012-07-30 16:05:20 -040015 .sops = &nfs_sops,
Christoph Hellwig013cdf12013-12-20 05:16:53 -080016#ifdef CONFIG_NFS_V3_ACL
17 .xattr = nfs3_xattr_handlers,
18#endif
Bryan Schumakerab7017a2012-07-30 16:05:16 -040019};
20
Bryan Schumaker1c606fb2012-07-30 16:05:24 -040021static int __init init_nfs_v3(void)
Bryan Schumakerab7017a2012-07-30 16:05:16 -040022{
23 register_nfs_version(&nfs_v3);
24 return 0;
25}
26
Bryan Schumaker1c606fb2012-07-30 16:05:24 -040027static void __exit exit_nfs_v3(void)
Bryan Schumakerab7017a2012-07-30 16:05:16 -040028{
29 unregister_nfs_version(&nfs_v3);
30}
Bryan Schumaker1c606fb2012-07-30 16:05:24 -040031
32MODULE_LICENSE("GPL");
33
34module_init(init_nfs_v3);
35module_exit(exit_nfs_v3);