]>
Commit | Line | Data |
---|---|---|
ab7017a3 BS |
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" | |
cb8c20fa | 7 | #include "nfs3_fs.h" |
ab7017a3 BS |
8 | #include "nfs.h" |
9 | ||
1a04c6e1 | 10 | struct nfs_subversion nfs_v3 = { |
ab7017a3 BS |
11 | .owner = THIS_MODULE, |
12 | .nfs_fs = &nfs_fs_type, | |
13 | .rpc_vers = &nfs_version3, | |
14 | .rpc_ops = &nfs_v3_clientops, | |
6a74490d | 15 | .sops = &nfs_sops, |
013cdf10 CH |
16 | #ifdef CONFIG_NFS_V3_ACL |
17 | .xattr = nfs3_xattr_handlers, | |
18 | #endif | |
ab7017a3 BS |
19 | }; |
20 | ||
1c606fb7 | 21 | static int __init init_nfs_v3(void) |
ab7017a3 BS |
22 | { |
23 | register_nfs_version(&nfs_v3); | |
24 | return 0; | |
25 | } | |
26 | ||
1c606fb7 | 27 | static void __exit exit_nfs_v3(void) |
ab7017a3 BS |
28 | { |
29 | unregister_nfs_version(&nfs_v3); | |
30 | } | |
1c606fb7 BS |
31 | |
32 | MODULE_LICENSE("GPL"); | |
33 | ||
34 | module_init(init_nfs_v3); | |
35 | module_exit(exit_nfs_v3); |