Many files:
pass1.c, pass2.c, pass3.c, pass4.c, pass5.c: Add calls to the progress
indicator function.
pass1.c (scan_callback): Add call to the progress feedback function
(if it exists).
super.c (check_super_block): Skip the device size check if the
get_device_size returns EXT2_EXT_UNIMPLEMENTED.
iscan.c (main): Don't use fatal_error() anymore.
pass1b.c, swapfs.c, badblocks.c: Set E2F_FLAG_ABORT instead of calling
fatal_error(0).
problem.c, pass3.c (PR_3_ROOT_NOT_DIR_ABORT,
PR_3_NO_ROOT_INODE_ABORT): New problem codes.
problem.c, pass2.c (PR_2_SPLIT_DOT): New problem code.
problem.c, pass1.c (PR_1_SUPPRESS_MESSAGES): New problem code.
problemP.h: New file which separates out the private fix_problem data
structures.
util.c, dirinfo.c, pass1.c, pass1b.c, pass2.c, pass5.c, super.c,
swapfs.c util.c: allocate_memory() now takes a e2fsck context as its
first argument, and rename it to be e2fsck_allocate_memory().
problemP.h:
New file which contains the private problem abstraction definitions.
Makefile.pq:
Remove include of MAKEFILE.STD, which doesn't exist at this point.
1997-11-14 08:23:04 +03:00
|
|
|
/*
|
|
|
|
* problemP.h --- Private header file for fix_problem()
|
|
|
|
*
|
|
|
|
* Copyright 1997 by Theodore Ts'o
|
|
|
|
*
|
|
|
|
* %Begin-Header%
|
|
|
|
* This file may be redistributed under the terms of the GNU Public
|
|
|
|
* License.
|
|
|
|
* %End-Header%
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct e2fsck_problem {
|
|
|
|
problem_t e2p_code;
|
|
|
|
const char * e2p_description;
|
|
|
|
char prompt;
|
ChangeLog, pass1.c, problem.c, problem.h, problemP.h:
pass1.c: Treat inodes with a low dtime (that were from a corrupted
orphan list) specially.
problem.c, problem.h: Add new problem codes PR_1_LOW_DTIME and
PR_1_ORPHAN_LIST_REFUGEES, and a new latch group, PR_LATCH_LOW_DTIME.
problemP.h: Expand the size of the problem flag to be an int instead
of a short. Expand space in the flag word which is reserved for
problem latch flags from 3 bits to 8 bits.
ChangeLog, expect.1, expect.2, image.gz, name:
f_badorphan: New test which verifies corrupted orphan list handling.
2001-05-14 16:47:41 +04:00
|
|
|
int flags;
|
Many files:
pass1.c, pass2.c, pass3.c, pass4.c, pass5.c: Add calls to the progress
indicator function.
pass1.c (scan_callback): Add call to the progress feedback function
(if it exists).
super.c (check_super_block): Skip the device size check if the
get_device_size returns EXT2_EXT_UNIMPLEMENTED.
iscan.c (main): Don't use fatal_error() anymore.
pass1b.c, swapfs.c, badblocks.c: Set E2F_FLAG_ABORT instead of calling
fatal_error(0).
problem.c, pass3.c (PR_3_ROOT_NOT_DIR_ABORT,
PR_3_NO_ROOT_INODE_ABORT): New problem codes.
problem.c, pass2.c (PR_2_SPLIT_DOT): New problem code.
problem.c, pass1.c (PR_1_SUPPRESS_MESSAGES): New problem code.
problemP.h: New file which separates out the private fix_problem data
structures.
util.c, dirinfo.c, pass1.c, pass1b.c, pass2.c, pass5.c, super.c,
swapfs.c util.c: allocate_memory() now takes a e2fsck context as its
first argument, and rename it to be e2fsck_allocate_memory().
problemP.h:
New file which contains the private problem abstraction definitions.
Makefile.pq:
Remove include of MAKEFILE.STD, which doesn't exist at this point.
1997-11-14 08:23:04 +03:00
|
|
|
problem_t second_code;
|
2012-03-15 01:44:54 +04:00
|
|
|
int count;
|
|
|
|
int max_count;
|
Many files:
pass1.c, pass2.c, pass3.c, pass4.c, pass5.c: Add calls to the progress
indicator function.
pass1.c (scan_callback): Add call to the progress feedback function
(if it exists).
super.c (check_super_block): Skip the device size check if the
get_device_size returns EXT2_EXT_UNIMPLEMENTED.
iscan.c (main): Don't use fatal_error() anymore.
pass1b.c, swapfs.c, badblocks.c: Set E2F_FLAG_ABORT instead of calling
fatal_error(0).
problem.c, pass3.c (PR_3_ROOT_NOT_DIR_ABORT,
PR_3_NO_ROOT_INODE_ABORT): New problem codes.
problem.c, pass2.c (PR_2_SPLIT_DOT): New problem code.
problem.c, pass1.c (PR_1_SUPPRESS_MESSAGES): New problem code.
problemP.h: New file which separates out the private fix_problem data
structures.
util.c, dirinfo.c, pass1.c, pass1b.c, pass2.c, pass5.c, super.c,
swapfs.c util.c: allocate_memory() now takes a e2fsck context as its
first argument, and rename it to be e2fsck_allocate_memory().
problemP.h:
New file which contains the private problem abstraction definitions.
Makefile.pq:
Remove include of MAKEFILE.STD, which doesn't exist at this point.
1997-11-14 08:23:04 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
struct latch_descr {
|
|
|
|
int latch_code;
|
|
|
|
problem_t question;
|
|
|
|
problem_t end_message;
|
|
|
|
int flags;
|
|
|
|
};
|
|
|
|
|
ChangeLog, pass1.c, problem.c, problem.h, problemP.h:
pass1.c: Treat inodes with a low dtime (that were from a corrupted
orphan list) specially.
problem.c, problem.h: Add new problem codes PR_1_LOW_DTIME and
PR_1_ORPHAN_LIST_REFUGEES, and a new latch group, PR_LATCH_LOW_DTIME.
problemP.h: Expand the size of the problem flag to be an int instead
of a short. Expand space in the flag word which is reserved for
problem latch flags from 3 bits to 8 bits.
ChangeLog, expect.1, expect.2, image.gz, name:
f_badorphan: New test which verifies corrupted orphan list handling.
2001-05-14 16:47:41 +04:00
|
|
|
#define PR_PREEN_OK 0x000001 /* Don't need to do preenhalt */
|
|
|
|
#define PR_NO_OK 0x000002 /* If user answers no, don't make fs invalid */
|
|
|
|
#define PR_NO_DEFAULT 0x000004 /* Default to no */
|
|
|
|
#define PR_MSG_ONLY 0x000008 /* Print message only */
|
|
|
|
|
|
|
|
/* Bit positions 0x000ff0 are reserved for the PR_LATCH flags */
|
|
|
|
|
|
|
|
#define PR_FATAL 0x001000 /* Fatal error */
|
|
|
|
#define PR_AFTER_CODE 0x002000 /* After asking the first question, */
|
|
|
|
/* ask another */
|
|
|
|
#define PR_PREEN_NOMSG 0x004000 /* Don't print a message if we're preening */
|
|
|
|
#define PR_NOCOLLATE 0x008000 /* Don't collate answers for this latch */
|
|
|
|
#define PR_NO_NOMSG 0x010000 /* Don't print a message if e2fsck -n */
|
|
|
|
#define PR_PREEN_NO 0x020000 /* Use No as an answer if preening */
|
2002-07-20 08:28:07 +04:00
|
|
|
#define PR_PREEN_NOHDR 0x040000 /* Don't print the preen header */
|
2008-08-28 07:07:54 +04:00
|
|
|
#define PR_CONFIG 0x080000 /* This problem has been customized
|
2006-01-01 00:33:33 +03:00
|
|
|
from the config file */
|
2010-12-06 18:10:33 +03:00
|
|
|
#define PR_FORCE_NO 0x100000 /* Force the answer to be no */
|