aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util-linux/mount.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 8ec3071b1..aed6f798b 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -749,7 +749,15 @@ static const uint8_t nfs_err_stat[] = {
749 19, 20, 21, 22, 27, 28, 749 19, 20, 21, 22, 27, 28,
750 30, 63, 66, 69, 70, 71 750 30, 63, 66, 69, 70, 71
751}; 751};
752static const uint8_t nfs_err_errnum[] = { 752#if ( \
753 EPERM | ENOENT | EIO | ENXIO | EACCES| EEXIST | \
754 ENODEV| ENOTDIR | EISDIR | EINVAL| EFBIG | ENOSPC | \
755 EROFS | ENAMETOOLONG| ENOTEMPTY| EDQUOT| ESTALE| EREMOTE) < 256
756typedef uint8_t nfs_err_type;
757#else
758typedef uint16_t nfs_err_type;
759#endif
760static const nfs_err_type nfs_err_errnum[] = {
753 EPERM , ENOENT , EIO , ENXIO , EACCES, EEXIST, 761 EPERM , ENOENT , EIO , ENXIO , EACCES, EEXIST,
754 ENODEV, ENOTDIR , EISDIR , EINVAL, EFBIG , ENOSPC, 762 ENODEV, ENOTDIR , EISDIR , EINVAL, EFBIG , ENOSPC,
755 EROFS , ENAMETOOLONG, ENOTEMPTY, EDQUOT, ESTALE, EREMOTE 763 EROFS , ENAMETOOLONG, ENOTEMPTY, EDQUOT, ESTALE, EREMOTE