From 88640c0e8b6f503426cce9ea1337098c241d3801 Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Thu, 17 Jan 2019 06:35:45 +0000 Subject: 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 --- stand/liblua/lerrno.c | 1 + 1 file changed, 1 insertion(+) (limited to 'stand/liblua') diff --git a/stand/liblua/lerrno.c b/stand/liblua/lerrno.c index efa73aed5007..defa3c73baad 100644 --- a/stand/liblua/lerrno.c +++ b/stand/liblua/lerrno.c @@ -146,6 +146,7 @@ static const struct err_name_number { ENTRY(ECAPMODE), ENTRY(ENOTRECOVERABLE), ENTRY(EOWNERDEAD), + ENTRY(EINTEGRITY), ENTRY(ELAST), ENTRY(ERESTART), ENTRY(EJUSTRETURN), -- cgit v1.2.3