nfs3super.c 635 B

12345678910111213141516171819202122232425262728293031323334
  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. static struct nfs_subversion nfs_v3 = {
  9. .owner = THIS_MODULE,
  10. .nfs_fs = &nfs_fs_type,
  11. .rpc_vers = &nfs_version3,
  12. .rpc_ops = &nfs_v3_clientops,
  13. .sops = &nfs_sops,
  14. #ifdef CONFIG_NFS_V3_ACL
  15. .xattr = nfs3_xattr_handlers,
  16. #endif
  17. };
  18. static int __init init_nfs_v3(void)
  19. {
  20. register_nfs_version(&nfs_v3);
  21. return 0;
  22. }
  23. static void __exit exit_nfs_v3(void)
  24. {
  25. unregister_nfs_version(&nfs_v3);
  26. }
  27. MODULE_LICENSE("GPL");
  28. module_init(init_nfs_v3);
  29. module_exit(exit_nfs_v3);