Bryan Schumaker | ab7017a | 2012-07-30 16:05:16 -0400 | [diff] [blame] | 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" |
Anna Schumaker | cb8c20f | 2014-09-03 12:19:10 -0400 | [diff] [blame] | 7 | #include "nfs3_fs.h" |
Bryan Schumaker | ab7017a | 2012-07-30 16:05:16 -0400 | [diff] [blame] | 8 | #include "nfs.h" |
| 9 | |
| 10 | static struct nfs_subversion nfs_v3 = { |
| 11 | .owner = THIS_MODULE, |
| 12 | .nfs_fs = &nfs_fs_type, |
| 13 | .rpc_vers = &nfs_version3, |
| 14 | .rpc_ops = &nfs_v3_clientops, |
Bryan Schumaker | 6a74490 | 2012-07-30 16:05:20 -0400 | [diff] [blame] | 15 | .sops = &nfs_sops, |
Christoph Hellwig | 013cdf1 | 2013-12-20 05:16:53 -0800 | [diff] [blame] | 16 | #ifdef CONFIG_NFS_V3_ACL |
| 17 | .xattr = nfs3_xattr_handlers, |
| 18 | #endif |
Bryan Schumaker | ab7017a | 2012-07-30 16:05:16 -0400 | [diff] [blame] | 19 | }; |
| 20 | |
Bryan Schumaker | 1c606fb | 2012-07-30 16:05:24 -0400 | [diff] [blame] | 21 | static int __init init_nfs_v3(void) |
Bryan Schumaker | ab7017a | 2012-07-30 16:05:16 -0400 | [diff] [blame] | 22 | { |
| 23 | register_nfs_version(&nfs_v3); |
| 24 | return 0; |
| 25 | } |
| 26 | |
Bryan Schumaker | 1c606fb | 2012-07-30 16:05:24 -0400 | [diff] [blame] | 27 | static void __exit exit_nfs_v3(void) |
Bryan Schumaker | ab7017a | 2012-07-30 16:05:16 -0400 | [diff] [blame] | 28 | { |
| 29 | unregister_nfs_version(&nfs_v3); |
| 30 | } |
Bryan Schumaker | 1c606fb | 2012-07-30 16:05:24 -0400 | [diff] [blame] | 31 | |
| 32 | MODULE_LICENSE("GPL"); |
| 33 | |
| 34 | module_init(init_nfs_v3); |
| 35 | module_exit(exit_nfs_v3); |