Blame view

fs/nfs/nfs3super.c 649 Bytes
ab7017a3a   Bryan Schumaker   NFS: Add version ...
1
2
3
4
5
6
  /*
   * Copyright (c) 2012 Netapp, Inc. All rights reserved.
   */
  #include <linux/module.h>
  #include <linux/nfs_fs.h>
  #include "internal.h"
cb8c20fa5   Anna Schumaker   NFS: Move NFS v3 ...
7
  #include "nfs3_fs.h"
ab7017a3a   Bryan Schumaker   NFS: Add version ...
8
  #include "nfs.h"
1a04c6e1a   Peng Tao   nfsv3: introduce ...
9
  struct nfs_subversion nfs_v3 = {
ab7017a3a   Bryan Schumaker   NFS: Add version ...
10
11
12
13
  	.owner = THIS_MODULE,
  	.nfs_fs   = &nfs_fs_type,
  	.rpc_vers = &nfs_version3,
  	.rpc_ops  = &nfs_v3_clientops,
6a74490dc   Bryan Schumaker   NFS: Pass super o...
14
  	.sops     = &nfs_sops,
013cdf108   Christoph Hellwig   nfs: use generic ...
15
16
17
  #ifdef CONFIG_NFS_V3_ACL
  	.xattr    = nfs3_xattr_handlers,
  #endif
ab7017a3a   Bryan Schumaker   NFS: Add version ...
18
  };
1c606fb74   Bryan Schumaker   NFS: Convert v3 i...
19
  static int __init init_nfs_v3(void)
ab7017a3a   Bryan Schumaker   NFS: Add version ...
20
21
22
23
  {
  	register_nfs_version(&nfs_v3);
  	return 0;
  }
1c606fb74   Bryan Schumaker   NFS: Convert v3 i...
24
  static void __exit exit_nfs_v3(void)
ab7017a3a   Bryan Schumaker   NFS: Add version ...
25
26
27
  {
  	unregister_nfs_version(&nfs_v3);
  }
1c606fb74   Bryan Schumaker   NFS: Convert v3 i...
28
29
30
31
32
  
  MODULE_LICENSE("GPL");
  
  module_init(init_nfs_v3);
  module_exit(exit_nfs_v3);