nfs3super.c 649 B

1234567891011121314151617181920212223242526272829303132333435
  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 "nfs3_fs.h"
  8. #include "nfs.h"
  9. 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,
  14. .sops = &nfs_sops,
  15. #ifdef CONFIG_NFS_V3_ACL
  16. .xattr = nfs3_xattr_handlers,
  17. #endif
  18. };
  19. static int __init init_nfs_v3(void)
  20. {
  21. register_nfs_version(&nfs_v3);
  22. return 0;
  23. }
  24. static void __exit exit_nfs_v3(void)
  25. {
  26. unregister_nfs_version(&nfs_v3);
  27. }
  28. MODULE_LICENSE("GPL");
  29. module_init(init_nfs_v3);
  30. module_exit(exit_nfs_v3);