blob: f82e11c4cb56b402b7641551c87204259750aaf9 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Anna Schumaker00a36a102014-09-03 12:19:08 -04002/*
3 * Copyright (C) 2014 Anna Schumaker.
4 *
5 * NFSv3-specific filesystem definitions and declarations
6 */
7#ifndef __LINUX_FS_NFS_NFS3_FS_H
8#define __LINUX_FS_NFS_NFS3_FS_H
9
Anna Schumakercb8c20f2014-09-03 12:19:10 -040010/*
11 * nfs3acl.c
12 */
13#ifdef CONFIG_NFS_V3_ACL
14extern struct posix_acl *nfs3_get_acl(struct inode *inode, int type);
15extern int nfs3_set_acl(struct inode *inode, struct posix_acl *acl, int type);
16extern int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl,
17 struct posix_acl *dfacl);
18extern ssize_t nfs3_listxattr(struct dentry *, char *, size_t);
19extern const struct xattr_handler *nfs3_xattr_handlers[];
20#else
21static inline int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl,
22 struct posix_acl *dfacl)
23{
24 return 0;
25}
26#define nfs3_listxattr NULL
27#endif /* CONFIG_NFS_V3_ACL */
28
Anna Schumaker00a36a102014-09-03 12:19:08 -040029/* nfs3client.c */
30struct nfs_server *nfs3_create_server(struct nfs_mount_info *, struct nfs_subversion *);
31struct nfs_server *nfs3_clone_server(struct nfs_server *, struct nfs_fh *,
32 struct nfs_fattr *, rpc_authflavor_t);
33
Peng Tao1a04c6e2014-05-30 18:15:57 +080034/* nfs3super.c */
35extern struct nfs_subversion nfs_v3;
Anna Schumaker00a36a102014-09-03 12:19:08 -040036
37#endif /* __LINUX_FS_NFS_NFS3_FS_H */