HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1017-azure #17~24.04.1-Ubuntu SMP Mon Dec 1 20:10:50 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.4.12
Disabled: NONE
Upload Files
File: //usr/src/linux-headers-6.14.0-1017-azure/include/linux/nfs_common.h
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * This file contains constants and methods used by both NFS client and server.
 */
#ifndef _LINUX_NFS_COMMON_H
#define _LINUX_NFS_COMMON_H

#include <linux/errno.h>
#include <uapi/linux/nfs.h>

/* Mapping from NFS error code to "errno" error code. */

int nfs_stat_to_errno(enum nfs_stat status);
int nfs4_stat_to_errno(int stat);

__u32 nfs_localio_errno_to_nfs4_stat(int errno);

#endif /* _LINUX_NFS_COMMON_H */