]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When mounting a UFS filesystem, return EINTEGRITY rather than EIO
authormckusick <mckusick@FreeBSD.org>
Wed, 11 Mar 2020 21:00:40 +0000 (21:00 +0000)
committermckusick <mckusick@FreeBSD.org>
Wed, 11 Mar 2020 21:00:40 +0000 (21:00 +0000)
commit91ea5037fdeb996adec25832dddea15fe3b0e14e
tree68c47d82a1a6b7e332836b37867fa1ecaf2e87ea
parentc9814c28fc6bb8539ffe602bc140344bec9f2c6e
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
lib/libc/sys/mount.2
sys/ufs/ffs/ffs_subr.c