blob: 5738610afd109cdbde27567914c4c7dc11235b8c [file] [log] [blame]
Theodore Ts'of8188ff1997-11-14 05:23:04 +00001/*
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 */
Theodore Ts'oaa4115a1999-10-21 19:33:18 +000036#define PR_NO_NOMSG 0x0800 /* Don't print a message if e2fsck -n */
Theodore Ts'oa846d2f1999-11-10 15:50:24 +000037#define PR_PREEN_NO 0x1000 /* Use No as an answer if preening */
Theodore Ts'of8188ff1997-11-14 05:23:04 +000038