From 878d27c845157bb64c32bbd6c3cacce17c681d70 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Mon, 12 Nov 2018 14:41:44 -0600 Subject: [PATCH] vlserver: Add VL_DBBAD error code The VL_ error table currently doesn't have an error code to indicate that an operation cannot succeed because the database is corrupted. There are a few error codes for specific cases of errors that are probably the result of corruption (like VL_IDALREADYHASHED, or VL_EMPTY), but these are only for specific cases and indicate rather low-level internal problems. There are some instances where the real problem preventing an operation from succeeding is that the database is just corrupt or inconsistent in some way, and the administrator must repair the database before it can succeed. And we currently don't have any way of indicating that situation via an error code. So, introduce the VL_DBBAD code, to indicate this situation. Error codes already exist in other tables for similar situations, such as PRDBBAD, and KADATABASEINCONSISTENT. This commit does not use the new error code anywhere; we just introduce it into the VL_ error table, so comerr-using applications will be able to interpret it. Note that the VL_DBBAD error code has been recognized by the AFS Assigned Numbers Registry as recorded in the ticket history of Change-Id: I8fea356a4e0db907ec8418efe6ef35d547be0a63 Reviewed-on: https://gerrit.openafs.org/13383 Tested-by: BuildBot Reviewed-by: Mark Vitale Reviewed-by: Benjamin Kaduk --- src/vlserver/vl_errors.et | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vlserver/vl_errors.et b/src/vlserver/vl_errors.et index c6557da..3527634 100644 --- a/src/vlserver/vl_errors.et +++ b/src/vlserver/vl_errors.et @@ -43,4 +43,5 @@ error_table VL ec VL_INDEXERANGE, "Index out of range" ec VL_MULTIPADDR, "Servers have the same ip address" ec VL_BADMASK, "Illegal attribute mask value" + ec VL_DBBAD, "Database is inconsistent" end -- 1.9.4