1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 2 /* 3 * This file contains constants and methods us 3 * This file contains constants and methods used by both NFS client and server. 4 */ 4 */ 5 #ifndef _LINUX_NFS_COMMON_H 5 #ifndef _LINUX_NFS_COMMON_H 6 #define _LINUX_NFS_COMMON_H 6 #define _LINUX_NFS_COMMON_H 7 7 8 #include <linux/errno.h> 8 #include <linux/errno.h> 9 #include <uapi/linux/nfs.h> 9 #include <uapi/linux/nfs.h> 10 10 11 /* Mapping from NFS error code to "errno" erro 11 /* Mapping from NFS error code to "errno" error code. */ 12 #define errno_NFSERR_IO EIO 12 #define errno_NFSERR_IO EIO 13 13 14 int nfs_stat_to_errno(enum nfs_stat status); 14 int nfs_stat_to_errno(enum nfs_stat status); 15 int nfs4_stat_to_errno(int stat); 15 int nfs4_stat_to_errno(int stat); 16 16 17 #endif /* _LINUX_NFS_COMMON_H */ 17 #endif /* _LINUX_NFS_COMMON_H */ 18 18
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.