]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Create new EINTEGRITY error with message "Integrity check failed".
authormckusick <mckusick@FreeBSD.org>
Thu, 17 Jan 2019 06:35:45 +0000 (06:35 +0000)
committermckusick <mckusick@FreeBSD.org>
Thu, 17 Jan 2019 06:35:45 +0000 (06:35 +0000)
commit72a21ba0f62da5e86a1c0b462aeb3f5ff849a1b7
treef2ee08193db32edc9d3c8929e21ec8dceea54e32
parentb7b4dcccb5aa5fc3f6bb2f98ca04f895cbab5efc
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.

Reviewed by:    gnn, dim, brueffer, imp
Discussed with: kib, cem, emaste, ed, jilles
Differential Revision: https://reviews.freebsd.org/D18765
16 files changed:
cddl/lib/libdtrace/errno.d
contrib/libc++/include/__errc
contrib/libc++/include/errno.h
contrib/libxo/tests/gettext/po/pig_latin/strerror.po
contrib/libxo/tests/gettext/strerror.pot
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