]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r343111,343113-343115 (by mckusick):
authorAlexander Motin <mav@FreeBSD.org>
Thu, 30 Jan 2020 16:11:19 +0000 (16:11 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Thu, 30 Jan 2020 16:11:19 +0000 (16:11 +0000)
commit8bfbf2fb6fc12b06c341ff2a5a6e81eced88a93f
tree5abd15bca7f3b150f5a60bcbd59a7e3c2388fdb1
parent3a9b5ad2fab97d25dcf635ecaf3f60444ab0fb79
MFC r343111,343113-343115 (by mckusick):
Create new EINTEGRITY error with message "Integrity check failed".

An integrity check such as a check-hash or a cross-correlation failed.
The integrity error falls between EINVAL that identifies errors in
parameters to a system call and EIO that identifies errors with the
underlying storage media. EINTEGRITY is typically raised by intermediate
kernel layers such as a filesystem or an in-kernel GEOM subsystem when
they detect inconsistencies. Uses include allowing the mount(8) command
to return a different exit value to automate the running of fsck(8)
during a system boot.

These changes make no use of the new error, they just add it. Later
commits will be made for the use of the new error number and it will
be added to additional manual pages as appropriate.

Approved by: mckusick
16 files changed:
cddl/lib/libdtrace/errno.d
contrib/libxo/tests/gettext/po/pig_latin/strerror.po
contrib/libxo/tests/gettext/strerror.pot
contrib/llvm-project/libcxx/include/__errc
contrib/llvm-project/libcxx/include/errno.h
contrib/openbsm/libbsm/bsm_errno.c
contrib/openbsm/sys/bsm/audit_errno.h
lib/libc/gen/errlst.c
lib/libc/nls/C.msg
lib/libc/sys/intro.2
stand/liblua/lerrno.c
sys/bsm/audit_errno.h
sys/compat/cloudabi/cloudabi_errno.c
sys/compat/linux/linux_errno.inc
sys/security/audit/bsm_errno.c
sys/sys/errno.h