blob: d6a98949af191e5e79e8cf74adb26f2b8f3cc462 [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_v3 = {
10 .owner = THIS_MODULE,
11 .nfs_fs = &nfs_fs_type,
12 .rpc_vers = &nfs_version3,
13 .rpc_ops = &nfs_v3_clientops,
Bryan Schumaker6a744902012-07-30 16:05:20 -040014 .sops = &nfs_sops,
Christoph Hellwig013cdf12013-12-20 05:16:53 -080015#ifdef CONFIG_NFS_V3_ACL
16 .xattr = nfs3_xattr_handlers,
17#endif
Bryan Schumakerab7017a2012-07-30 16:05:16 -040018};
19
Bryan Schumaker1c606fb2012-07-30 16:05:24 -040020static int __init init_nfs_v3(void)
Bryan Schumakerab7017a2012-07-30 16:05:16 -040021{
22 register_nfs_version(&nfs_v3);
23 return 0;
24}
25
Bryan Schumaker1c606fb2012-07-30 16:05:24 -040026static void __exit exit_nfs_v3(void)
Bryan Schumakerab7017a2012-07-30 16:05:16 -040027{
28 unregister_nfs_version(&nfs_v3);
29}
Bryan Schumaker1c606fb2012-07-30 16:05:24 -040030
31MODULE_LICENSE("GPL");
32
33module_init(init_nfs_v3);
34module_exit(exit_nfs_v3);