problemP.h revision f8188fff23dc2d9c9f858fb21264e46b17672825
1/* 2 * problemP.h --- Private header file for fix_problem() 3 * 4 * Copyright 1997 by Theodore Ts'o 5 * 6 * %Begin-Header% 7 * This file may be redistributed under the terms of the GNU Public 8 * License. 9 * %End-Header% 10 */ 11 12struct e2fsck_problem { 13 problem_t e2p_code; 14 const char * e2p_description; 15 char prompt; 16 short flags; 17 problem_t second_code; 18}; 19 20struct latch_descr { 21 int latch_code; 22 problem_t question; 23 problem_t end_message; 24 int flags; 25}; 26 27#define PR_PREEN_OK 0x0001 /* Don't need to do preenhalt */ 28#define PR_NO_OK 0x0002 /* If user answers no, don't make fs invalid */ 29#define PR_NO_DEFAULT 0x0004 /* Default to no */ 30#define PR_MSG_ONLY 0x0008 /* Print message only */ 31#define PR_FATAL 0x0080 /* Fatal error */ 32#define PR_AFTER_CODE 0x0100 /* After asking the first question, */ 33 /* ask another */ 34#define PR_PREEN_NOMSG 0x0200 /* Don't print a message if we're preening */ 35#define PR_NOCOLLATE 0x0400 /* Don't collate answers for this latch */ 36 37