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" |
| 7 | #include "nfs.h" |
| 8 | |
| 9 | static 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 Schumaker | 6a74490 | 2012-07-30 16:05:20 -0400 | [diff] [blame] | 14 | .sops = &nfs_sops, |
Bryan Schumaker | ab7017a | 2012-07-30 16:05:16 -0400 | [diff] [blame] | 15 | }; |
| 16 | |
Bryan Schumaker | ddda8e0 | 2012-07-30 16:05:23 -0400 | [diff] [blame] | 17 | static int __init init_nfs_v2(void) |
Bryan Schumaker | ab7017a | 2012-07-30 16:05:16 -0400 | [diff] [blame] | 18 | { |
| 19 | register_nfs_version(&nfs_v2); |
| 20 | return 0; |
| 21 | } |
| 22 | |
Bryan Schumaker | ddda8e0 | 2012-07-30 16:05:23 -0400 | [diff] [blame] | 23 | static void __exit exit_nfs_v2(void) |
Bryan Schumaker | ab7017a | 2012-07-30 16:05:16 -0400 | [diff] [blame] | 24 | { |
| 25 | unregister_nfs_version(&nfs_v2); |
| 26 | } |
Bryan Schumaker | ddda8e0 | 2012-07-30 16:05:23 -0400 | [diff] [blame] | 27 | |
| 28 | MODULE_LICENSE("GPL"); |
| 29 | |
| 30 | module_init(init_nfs_v2); |
| 31 | module_exit(exit_nfs_v2); |