nfs3_fs.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (C) 2014 Anna Schumaker.
  3. *
  4. * NFSv3-specific filesystem definitions and declarations
  5. */
  6. #ifndef __LINUX_FS_NFS_NFS3_FS_H
  7. #define __LINUX_FS_NFS_NFS3_FS_H
  8. /*
  9. * nfs3acl.c
  10. */
  11. #ifdef CONFIG_NFS_V3_ACL
  12. extern struct posix_acl *nfs3_get_acl(struct inode *inode, int type);
  13. extern int nfs3_set_acl(struct inode *inode, struct posix_acl *acl, int type);
  14. extern int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl,
  15. struct posix_acl *dfacl);
  16. extern ssize_t nfs3_listxattr(struct dentry *, char *, size_t);
  17. extern const struct xattr_handler *nfs3_xattr_handlers[];
  18. #else
  19. static inline int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl,
  20. struct posix_acl *dfacl)
  21. {
  22. return 0;
  23. }
  24. #define nfs3_listxattr NULL
  25. #endif /* CONFIG_NFS_V3_ACL */
  26. /* nfs3client.c */
  27. struct nfs_server *nfs3_create_server(struct nfs_mount_info *, struct nfs_subversion *);
  28. struct nfs_server *nfs3_clone_server(struct nfs_server *, struct nfs_fh *,
  29. struct nfs_fattr *, rpc_authflavor_t);
  30. /* nfs3super.c */
  31. extern struct nfs_subversion nfs_v3;
  32. #endif /* __LINUX_FS_NFS_NFS3_FS_H */