aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>2020-03-11 21:00:40 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2020-03-11 21:00:40 +0000
commit95ca762da8d7b937bcb90a3388d46f22e9ff825f (patch)
tree68c47d82a1a6b7e332836b37867fa1ecaf2e87ea /lib/libc
parentddc9d6e55ad770993baf860593016a8f64cb3cbd (diff)
downloadsrc-95ca762da8d7b937bcb90a3388d46f22e9ff825f.tar.gz
src-95ca762da8d7b937bcb90a3388d46f22e9ff825f.zip
When mounting a UFS filesystem, return EINTEGRITY rather than EIO
when a superblock check-hash error is detected. This change clarifies a mount that failed due to media hardware failures (EIO) from a mount that failed due to media errors (EINTEGRITY) that can be corrected by running fsck(8). Sponsored by: Netflix
Notes
Notes: svn path=/head/; revision=358899
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/mount.24
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/sys/mount.2 b/lib/libc/sys/mount.2
index 6f5a199be9ab..aea89e38c179 100644
--- a/lib/libc/sys/mount.2
+++ b/lib/libc/sys/mount.2
@@ -307,6 +307,10 @@ No space remains in the mount table.
.It Bq Er EINVAL
The super block for the file system had a bad magic
number or an out of range block size.
+.It Bq Er EINTEGRITY
+The super block for the file system had a bad check hash.
+The check hash can usually be corrected by running
+.Xr fsck 8 .
.It Bq Er ENOMEM
Not enough memory was available to read the cylinder
group information for the file system.