xref: /aosp_15_r20/external/e2fsprogs/e2fsck/problem.h (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1*6a54128fSAndroid Build Coastguard Worker /*
2*6a54128fSAndroid Build Coastguard Worker  * problem.h --- e2fsck problem error codes
3*6a54128fSAndroid Build Coastguard Worker  *
4*6a54128fSAndroid Build Coastguard Worker  * Copyright 1996 by Theodore Ts'o
5*6a54128fSAndroid Build Coastguard Worker  *
6*6a54128fSAndroid Build Coastguard Worker  * %Begin-Header%
7*6a54128fSAndroid Build Coastguard Worker  * This file may be redistributed under the terms of the GNU Public
8*6a54128fSAndroid Build Coastguard Worker  * License.
9*6a54128fSAndroid Build Coastguard Worker  * %End-Header%
10*6a54128fSAndroid Build Coastguard Worker  */
11*6a54128fSAndroid Build Coastguard Worker 
12*6a54128fSAndroid Build Coastguard Worker typedef __u32 problem_t;
13*6a54128fSAndroid Build Coastguard Worker 
14*6a54128fSAndroid Build Coastguard Worker struct problem_context {
15*6a54128fSAndroid Build Coastguard Worker 	errcode_t	errcode;
16*6a54128fSAndroid Build Coastguard Worker 	ext2_ino_t ino, ino2, dir;
17*6a54128fSAndroid Build Coastguard Worker 	struct ext2_inode *inode;
18*6a54128fSAndroid Build Coastguard Worker 	struct ext2_dir_entry *dirent;
19*6a54128fSAndroid Build Coastguard Worker 	blk64_t	blk, blk2;
20*6a54128fSAndroid Build Coastguard Worker 	e2_blkcnt_t	blkcount;
21*6a54128fSAndroid Build Coastguard Worker 	dgrp_t		group;
22*6a54128fSAndroid Build Coastguard Worker 	__u32		csum1, csum2;
23*6a54128fSAndroid Build Coastguard Worker 	__u64		num, num2;
24*6a54128fSAndroid Build Coastguard Worker 	const char *str;
25*6a54128fSAndroid Build Coastguard Worker };
26*6a54128fSAndroid Build Coastguard Worker 
27*6a54128fSAndroid Build Coastguard Worker /*
28*6a54128fSAndroid Build Coastguard Worker  * We define a set of "latch groups"; these are problems which are
29*6a54128fSAndroid Build Coastguard Worker  * handled as a set.  The user answers once for a particular latch
30*6a54128fSAndroid Build Coastguard Worker  * group.
31*6a54128fSAndroid Build Coastguard Worker  */
32*6a54128fSAndroid Build Coastguard Worker #define PR_LATCH_MASK	0x0ff0  /* Latch mask */
33*6a54128fSAndroid Build Coastguard Worker #define PR_LATCH_BLOCK	0x0010	/* Latch for illegal blocks (pass 1) */
34*6a54128fSAndroid Build Coastguard Worker #define PR_LATCH_BBLOCK	0x0020	/* Latch for bad block inode blocks (pass 1) */
35*6a54128fSAndroid Build Coastguard Worker #define PR_LATCH_IBITMAP 0x0030 /* Latch for pass 5 inode bitmap proc. */
36*6a54128fSAndroid Build Coastguard Worker #define PR_LATCH_BBITMAP 0x0040 /* Latch for pass 5 inode bitmap proc. */
37*6a54128fSAndroid Build Coastguard Worker #define PR_LATCH_RELOC	0x0050  /* Latch for superblock relocate hint */
38*6a54128fSAndroid Build Coastguard Worker #define PR_LATCH_DBLOCK	0x0060	/* Latch for pass 1b dup block headers */
39*6a54128fSAndroid Build Coastguard Worker #define PR_LATCH_LOW_DTIME 0x0070 /* Latch for pass1 orphaned list refugees */
40*6a54128fSAndroid Build Coastguard Worker #define PR_LATCH_TOOBIG	0x0080	/* Latch for file to big errors */
41*6a54128fSAndroid Build Coastguard Worker #define PR_LATCH_OPTIMIZE_DIR 0x0090 /* Latch for optimize directories */
42*6a54128fSAndroid Build Coastguard Worker #define PR_LATCH_BG_CHECKSUM 0x00A0  /* Latch for block group checksums */
43*6a54128fSAndroid Build Coastguard Worker #define PR_LATCH_OPTIMIZE_EXT 0x00B0  /* Latch for rebuild extents */
44*6a54128fSAndroid Build Coastguard Worker 
45*6a54128fSAndroid Build Coastguard Worker #define PR_LATCH(x)	((((x) & PR_LATCH_MASK) >> 4) - 1)
46*6a54128fSAndroid Build Coastguard Worker 
47*6a54128fSAndroid Build Coastguard Worker /*
48*6a54128fSAndroid Build Coastguard Worker  * Latch group descriptor flags
49*6a54128fSAndroid Build Coastguard Worker  */
50*6a54128fSAndroid Build Coastguard Worker #define PRL_YES		0x0001	/* Answer yes */
51*6a54128fSAndroid Build Coastguard Worker #define PRL_NO		0x0002	/* Answer no */
52*6a54128fSAndroid Build Coastguard Worker #define PRL_LATCHED	0x0004	/* The latch group is latched */
53*6a54128fSAndroid Build Coastguard Worker #define PRL_SUPPRESS	0x0008	/* Suppress all latch group questions */
54*6a54128fSAndroid Build Coastguard Worker 
55*6a54128fSAndroid Build Coastguard Worker #define PRL_VARIABLE	0x000f	/* All the flags that need to be reset */
56*6a54128fSAndroid Build Coastguard Worker 
57*6a54128fSAndroid Build Coastguard Worker /*
58*6a54128fSAndroid Build Coastguard Worker  * Pre-Pass 1 errors
59*6a54128fSAndroid Build Coastguard Worker  */
60*6a54128fSAndroid Build Coastguard Worker 
61*6a54128fSAndroid Build Coastguard Worker /* Block bitmap for group gggg is not in group */
62*6a54128fSAndroid Build Coastguard Worker #define PR_0_BB_NOT_GROUP			0x000001
63*6a54128fSAndroid Build Coastguard Worker 
64*6a54128fSAndroid Build Coastguard Worker /* Inode bitmap for group gggg is not in group */
65*6a54128fSAndroid Build Coastguard Worker #define PR_0_IB_NOT_GROUP			0x000002
66*6a54128fSAndroid Build Coastguard Worker 
67*6a54128fSAndroid Build Coastguard Worker /* Inode table for group gggg is not in group.  (block nnnn) */
68*6a54128fSAndroid Build Coastguard Worker #define PR_0_ITABLE_NOT_GROUP			0x000003
69*6a54128fSAndroid Build Coastguard Worker 
70*6a54128fSAndroid Build Coastguard Worker /* Superblock corrupt */
71*6a54128fSAndroid Build Coastguard Worker #define PR_0_SB_CORRUPT				0x000004
72*6a54128fSAndroid Build Coastguard Worker 
73*6a54128fSAndroid Build Coastguard Worker /* Filesystem size is wrong */
74*6a54128fSAndroid Build Coastguard Worker #define PR_0_FS_SIZE_WRONG			0x000005
75*6a54128fSAndroid Build Coastguard Worker 
76*6a54128fSAndroid Build Coastguard Worker /* Fragments not supported */
77*6a54128fSAndroid Build Coastguard Worker #define PR_0_NO_FRAGMENTS			0x000006
78*6a54128fSAndroid Build Coastguard Worker 
79*6a54128fSAndroid Build Coastguard Worker /* Superblock blocks_per_group = bbbb, should have been cccc */
80*6a54128fSAndroid Build Coastguard Worker #define PR_0_BLOCKS_PER_GROUP			0x000007
81*6a54128fSAndroid Build Coastguard Worker 
82*6a54128fSAndroid Build Coastguard Worker /* Superblock first_data_block = bbbb, should have been cccc */
83*6a54128fSAndroid Build Coastguard Worker #define PR_0_FIRST_DATA_BLOCK			0x000008
84*6a54128fSAndroid Build Coastguard Worker 
85*6a54128fSAndroid Build Coastguard Worker /* Filesystem did not have a UUID; generating one */
86*6a54128fSAndroid Build Coastguard Worker #define PR_0_ADD_UUID				0x000009
87*6a54128fSAndroid Build Coastguard Worker 
88*6a54128fSAndroid Build Coastguard Worker /* Relocate hint */
89*6a54128fSAndroid Build Coastguard Worker #define PR_0_RELOCATE_HINT			0x00000A
90*6a54128fSAndroid Build Coastguard Worker 
91*6a54128fSAndroid Build Coastguard Worker /* Miscellaneous superblock corruption */
92*6a54128fSAndroid Build Coastguard Worker #define PR_0_MISC_CORRUPT_SUPER			0x00000B
93*6a54128fSAndroid Build Coastguard Worker 
94*6a54128fSAndroid Build Coastguard Worker /* Error determining physical device size of filesystem */
95*6a54128fSAndroid Build Coastguard Worker #define PR_0_GETSIZE_ERROR			0x00000C
96*6a54128fSAndroid Build Coastguard Worker 
97*6a54128fSAndroid Build Coastguard Worker /* Inode count in the superblock incorrect */
98*6a54128fSAndroid Build Coastguard Worker #define PR_0_INODE_COUNT_WRONG			0x00000D
99*6a54128fSAndroid Build Coastguard Worker 
100*6a54128fSAndroid Build Coastguard Worker /* The Hurd does not support the filetype feature */
101*6a54128fSAndroid Build Coastguard Worker #define PR_0_HURD_CLEAR_FILETYPE		0x00000E
102*6a54128fSAndroid Build Coastguard Worker 
103*6a54128fSAndroid Build Coastguard Worker /* Superblock has an invalid journal (inode inum) */
104*6a54128fSAndroid Build Coastguard Worker #define PR_0_JOURNAL_BAD_INODE			0x00000F
105*6a54128fSAndroid Build Coastguard Worker 
106*6a54128fSAndroid Build Coastguard Worker /* External journal has multiple filesystem users (unsupported) */
107*6a54128fSAndroid Build Coastguard Worker #define PR_0_JOURNAL_UNSUPP_MULTIFS		0x000010
108*6a54128fSAndroid Build Coastguard Worker 
109*6a54128fSAndroid Build Coastguard Worker /* Can't find external journal */
110*6a54128fSAndroid Build Coastguard Worker #define PR_0_CANT_FIND_JOURNAL			0x000011
111*6a54128fSAndroid Build Coastguard Worker 
112*6a54128fSAndroid Build Coastguard Worker /* External journal has bad superblock */
113*6a54128fSAndroid Build Coastguard Worker #define PR_0_EXT_JOURNAL_BAD_SUPER		0x000012
114*6a54128fSAndroid Build Coastguard Worker 
115*6a54128fSAndroid Build Coastguard Worker /* Superblock has a bad journal UUID */
116*6a54128fSAndroid Build Coastguard Worker #define PR_0_JOURNAL_BAD_UUID			0x000013
117*6a54128fSAndroid Build Coastguard Worker 
118*6a54128fSAndroid Build Coastguard Worker /* Filesystem journal superblock is an unknown type */
119*6a54128fSAndroid Build Coastguard Worker #define PR_0_JOURNAL_UNSUPP_SUPER		0x000014
120*6a54128fSAndroid Build Coastguard Worker 
121*6a54128fSAndroid Build Coastguard Worker /* Journal superblock is corrupt */
122*6a54128fSAndroid Build Coastguard Worker #define PR_0_JOURNAL_BAD_SUPER			0x000015
123*6a54128fSAndroid Build Coastguard Worker 
124*6a54128fSAndroid Build Coastguard Worker /* Superblock has_journal flag is clear but has a journal */
125*6a54128fSAndroid Build Coastguard Worker #define PR_0_JOURNAL_HAS_JOURNAL		0x000016
126*6a54128fSAndroid Build Coastguard Worker 
127*6a54128fSAndroid Build Coastguard Worker /* Superblock needs_recovery flag is set but no journal is present */
128*6a54128fSAndroid Build Coastguard Worker #define PR_0_JOURNAL_RECOVER_SET		0x000017
129*6a54128fSAndroid Build Coastguard Worker 
130*6a54128fSAndroid Build Coastguard Worker /* Journal has data, but recovery flag is clear */
131*6a54128fSAndroid Build Coastguard Worker #define PR_0_JOURNAL_RECOVERY_CLEAR		0x000018
132*6a54128fSAndroid Build Coastguard Worker 
133*6a54128fSAndroid Build Coastguard Worker /* Ask if we should clear the journal */
134*6a54128fSAndroid Build Coastguard Worker #define PR_0_JOURNAL_RESET_JOURNAL		0x000019
135*6a54128fSAndroid Build Coastguard Worker 
136*6a54128fSAndroid Build Coastguard Worker /* Filesystem revision is 0, but feature flags are set */
137*6a54128fSAndroid Build Coastguard Worker #define PR_0_FS_REV_LEVEL			0x00001A
138*6a54128fSAndroid Build Coastguard Worker 
139*6a54128fSAndroid Build Coastguard Worker /* Clearing orphan inode */
140*6a54128fSAndroid Build Coastguard Worker #define PR_0_ORPHAN_CLEAR_INODE			0x000020
141*6a54128fSAndroid Build Coastguard Worker 
142*6a54128fSAndroid Build Coastguard Worker /* Illegal block found in orphaned inode */
143*6a54128fSAndroid Build Coastguard Worker #define PR_0_ORPHAN_ILLEGAL_BLOCK_NUM		0x000021
144*6a54128fSAndroid Build Coastguard Worker 
145*6a54128fSAndroid Build Coastguard Worker /* Already cleared block found in orphaned inode */
146*6a54128fSAndroid Build Coastguard Worker #define PR_0_ORPHAN_ALREADY_CLEARED_BLOCK	0x000022
147*6a54128fSAndroid Build Coastguard Worker 
148*6a54128fSAndroid Build Coastguard Worker /* Illegal orphan inode in superblock */
149*6a54128fSAndroid Build Coastguard Worker #define PR_0_ORPHAN_ILLEGAL_HEAD_INODE		0x000023
150*6a54128fSAndroid Build Coastguard Worker 
151*6a54128fSAndroid Build Coastguard Worker /* Illegal inode in orphaned inode list */
152*6a54128fSAndroid Build Coastguard Worker #define PR_0_ORPHAN_ILLEGAL_INODE		0x000024
153*6a54128fSAndroid Build Coastguard Worker 
154*6a54128fSAndroid Build Coastguard Worker /* Journal has unsupported read-only feature - abort */
155*6a54128fSAndroid Build Coastguard Worker #define PR_0_JOURNAL_UNSUPP_ROCOMPAT		0x000025
156*6a54128fSAndroid Build Coastguard Worker 
157*6a54128fSAndroid Build Coastguard Worker /* Journal has unsupported incompatible feature - abort */
158*6a54128fSAndroid Build Coastguard Worker #define PR_0_JOURNAL_UNSUPP_INCOMPAT		0x000026
159*6a54128fSAndroid Build Coastguard Worker 
160*6a54128fSAndroid Build Coastguard Worker /* Journal version not supported by this e2fsck */
161*6a54128fSAndroid Build Coastguard Worker #define PR_0_JOURNAL_UNSUPP_VERSION		0x000027
162*6a54128fSAndroid Build Coastguard Worker 
163*6a54128fSAndroid Build Coastguard Worker /* Moving journal from /file to hidden inode */
164*6a54128fSAndroid Build Coastguard Worker #define	PR_0_MOVE_JOURNAL			0x000028
165*6a54128fSAndroid Build Coastguard Worker 
166*6a54128fSAndroid Build Coastguard Worker /* Error moving journal to hidden file */
167*6a54128fSAndroid Build Coastguard Worker #define	PR_0_ERR_MOVE_JOURNAL			0x000029
168*6a54128fSAndroid Build Coastguard Worker 
169*6a54128fSAndroid Build Coastguard Worker /* Found invalid V2 journal superblock fields */
170*6a54128fSAndroid Build Coastguard Worker #define PR_0_CLEAR_V2_JOURNAL			0x00002A
171*6a54128fSAndroid Build Coastguard Worker 
172*6a54128fSAndroid Build Coastguard Worker /* Run journal anyway */
173*6a54128fSAndroid Build Coastguard Worker #define PR_0_JOURNAL_RUN			0x00002B
174*6a54128fSAndroid Build Coastguard Worker 
175*6a54128fSAndroid Build Coastguard Worker /* Run journal anyway by default */
176*6a54128fSAndroid Build Coastguard Worker #define PR_0_JOURNAL_RUN_DEFAULT		0x00002C
177*6a54128fSAndroid Build Coastguard Worker 
178*6a54128fSAndroid Build Coastguard Worker /* Backing up journal inode block information */
179*6a54128fSAndroid Build Coastguard Worker #define PR_0_BACKUP_JNL				0x00002D
180*6a54128fSAndroid Build Coastguard Worker 
181*6a54128fSAndroid Build Coastguard Worker /* Filesystem does not have resize_inode enabled, but
182*6a54128fSAndroid Build Coastguard Worker  * s_reserved_gdt_blocks is nnnn; should be zero */
183*6a54128fSAndroid Build Coastguard Worker #define PR_0_NONZERO_RESERVED_GDT_BLOCKS	0x00002E
184*6a54128fSAndroid Build Coastguard Worker 
185*6a54128fSAndroid Build Coastguard Worker /* Resize_inode not enabled, but the resize inode is non-zero */
186*6a54128fSAndroid Build Coastguard Worker #define PR_0_CLEAR_RESIZE_INODE			0x00002F
187*6a54128fSAndroid Build Coastguard Worker 
188*6a54128fSAndroid Build Coastguard Worker /* Resize inode not valid */
189*6a54128fSAndroid Build Coastguard Worker #define PR_0_RESIZE_INODE_INVALID		0x000030
190*6a54128fSAndroid Build Coastguard Worker 
191*6a54128fSAndroid Build Coastguard Worker /* Superblock last mount time is in the future */
192*6a54128fSAndroid Build Coastguard Worker #define PR_0_FUTURE_SB_LAST_MOUNT		0x000031
193*6a54128fSAndroid Build Coastguard Worker 
194*6a54128fSAndroid Build Coastguard Worker /* Superblock last write time is in the future */
195*6a54128fSAndroid Build Coastguard Worker #define PR_0_FUTURE_SB_LAST_WRITE		0x000032
196*6a54128fSAndroid Build Coastguard Worker 
197*6a54128fSAndroid Build Coastguard Worker /* Superblock hint for external superblock should be xxxx */
198*6a54128fSAndroid Build Coastguard Worker #define PR_0_EXTERNAL_JOURNAL_HINT		0x000033
199*6a54128fSAndroid Build Coastguard Worker 
200*6a54128fSAndroid Build Coastguard Worker /* Adding dirhash hint to filesystem */
201*6a54128fSAndroid Build Coastguard Worker #define PR_0_DIRHASH_HINT			0x000034
202*6a54128fSAndroid Build Coastguard Worker 
203*6a54128fSAndroid Build Coastguard Worker /* group descriptor N checksum is invalid, should be yyyy. */
204*6a54128fSAndroid Build Coastguard Worker #define PR_0_GDT_CSUM				0x000035
205*6a54128fSAndroid Build Coastguard Worker 
206*6a54128fSAndroid Build Coastguard Worker /* Group descriptor N marked uninitialized without feature set. */
207*6a54128fSAndroid Build Coastguard Worker #define PR_0_GDT_UNINIT				0x000036
208*6a54128fSAndroid Build Coastguard Worker 
209*6a54128fSAndroid Build Coastguard Worker /* Block bitmap is not initialised and Inode bitmap is -- NO LONGER USED */
210*6a54128fSAndroid Build Coastguard Worker /* #define PR_0_BB_UNINIT_IB_INIT			0x000037 */
211*6a54128fSAndroid Build Coastguard Worker 
212*6a54128fSAndroid Build Coastguard Worker /* Group descriptor N has invalid unused inodes count. */
213*6a54128fSAndroid Build Coastguard Worker #define PR_0_GDT_ITABLE_UNUSED			0x000038
214*6a54128fSAndroid Build Coastguard Worker 
215*6a54128fSAndroid Build Coastguard Worker /* Last group block bitmap is uninitialized. */
216*6a54128fSAndroid Build Coastguard Worker #define PR_0_BB_UNINIT_LAST			0x000039
217*6a54128fSAndroid Build Coastguard Worker 
218*6a54128fSAndroid Build Coastguard Worker /* Journal transaction was corrupt, replay was aborted */
219*6a54128fSAndroid Build Coastguard Worker #define PR_0_JNL_TXN_CORRUPT			0x00003A
220*6a54128fSAndroid Build Coastguard Worker 
221*6a54128fSAndroid Build Coastguard Worker /* The test_fs filesystem flag is set and ext4 is available */
222*6a54128fSAndroid Build Coastguard Worker #define PR_0_CLEAR_TESTFS_FLAG			0x00003B
223*6a54128fSAndroid Build Coastguard Worker 
224*6a54128fSAndroid Build Coastguard Worker /* Last mount time is in the future (fudged) */
225*6a54128fSAndroid Build Coastguard Worker #define PR_0_FUTURE_SB_LAST_MOUNT_FUDGED	0x00003C
226*6a54128fSAndroid Build Coastguard Worker 
227*6a54128fSAndroid Build Coastguard Worker /* Last write time is in the future (fudged) */
228*6a54128fSAndroid Build Coastguard Worker #define PR_0_FUTURE_SB_LAST_WRITE_FUDGED	0x00003D
229*6a54128fSAndroid Build Coastguard Worker 
230*6a54128fSAndroid Build Coastguard Worker /* One or more block group descriptor checksums are invalid (latch) */
231*6a54128fSAndroid Build Coastguard Worker #define PR_0_GDT_CSUM_LATCH			0x00003E
232*6a54128fSAndroid Build Coastguard Worker 
233*6a54128fSAndroid Build Coastguard Worker /* Setting free inodes count to right (was wrong) */
234*6a54128fSAndroid Build Coastguard Worker #define PR_0_FREE_INODE_COUNT			0x00003F
235*6a54128fSAndroid Build Coastguard Worker 
236*6a54128fSAndroid Build Coastguard Worker /* Setting free blocks count to right (was wrong) */
237*6a54128fSAndroid Build Coastguard Worker #define PR_0_FREE_BLOCK_COUNT			0x000040
238*6a54128fSAndroid Build Coastguard Worker 
239*6a54128fSAndroid Build Coastguard Worker /* Making quota inode hidden */
240*6a54128fSAndroid Build Coastguard Worker #define	PR_0_HIDE_QUOTA				0x000041
241*6a54128fSAndroid Build Coastguard Worker 
242*6a54128fSAndroid Build Coastguard Worker /* Superblock has invalid MMP block. */
243*6a54128fSAndroid Build Coastguard Worker #define PR_0_MMP_INVALID_BLK			0x000042
244*6a54128fSAndroid Build Coastguard Worker 
245*6a54128fSAndroid Build Coastguard Worker /* Superblock has invalid MMP magic. */
246*6a54128fSAndroid Build Coastguard Worker #define PR_0_MMP_INVALID_MAGIC			0x000043
247*6a54128fSAndroid Build Coastguard Worker 
248*6a54128fSAndroid Build Coastguard Worker /* Opening file system failed */
249*6a54128fSAndroid Build Coastguard Worker #define PR_0_OPEN_FAILED			0x000044
250*6a54128fSAndroid Build Coastguard Worker 
251*6a54128fSAndroid Build Coastguard Worker /* Checking group descriptor failed */
252*6a54128fSAndroid Build Coastguard Worker #define PR_0_CHECK_DESC_FAILED			0x000045
253*6a54128fSAndroid Build Coastguard Worker 
254*6a54128fSAndroid Build Coastguard Worker /* Superblock metadata_csum supersedes uninit_bg; both feature
255*6a54128fSAndroid Build Coastguard Worker  * bits cannot be set simultaneously. */
256*6a54128fSAndroid Build Coastguard Worker #define PR_0_META_AND_GDT_CSUM_SET		0x000046
257*6a54128fSAndroid Build Coastguard Worker 
258*6a54128fSAndroid Build Coastguard Worker /* Superblock MMP block checksum does not match MMP block. */
259*6a54128fSAndroid Build Coastguard Worker #define PR_0_MMP_CSUM_INVALID			0x000047
260*6a54128fSAndroid Build Coastguard Worker 
261*6a54128fSAndroid Build Coastguard Worker /* Superblock 64bit filesystem needs extents to access the whole disk */
262*6a54128fSAndroid Build Coastguard Worker #define PR_0_64BIT_WITHOUT_EXTENTS		0x000048
263*6a54128fSAndroid Build Coastguard Worker 
264*6a54128fSAndroid Build Coastguard Worker /* The first_meta_bg is too big */
265*6a54128fSAndroid Build Coastguard Worker #define PR_0_FIRST_META_BG_TOO_BIG		0x000049
266*6a54128fSAndroid Build Coastguard Worker 
267*6a54128fSAndroid Build Coastguard Worker /* External journal superblock checksum does not match superblock */
268*6a54128fSAndroid Build Coastguard Worker #define PR_0_EXT_JOURNAL_SUPER_CSUM_INVALID	0x00004A
269*6a54128fSAndroid Build Coastguard Worker 
270*6a54128fSAndroid Build Coastguard Worker /* metadata_csum_seed means nothing without metadata_csum */
271*6a54128fSAndroid Build Coastguard Worker #define PR_0_CSUM_SEED_WITHOUT_META_CSUM	0x00004B
272*6a54128fSAndroid Build Coastguard Worker 
273*6a54128fSAndroid Build Coastguard Worker /* Error initializing quota context */
274*6a54128fSAndroid Build Coastguard Worker #define PR_0_QUOTA_INIT_CTX			0x00004C
275*6a54128fSAndroid Build Coastguard Worker 
276*6a54128fSAndroid Build Coastguard Worker /* Bad required extra isize in superblock */
277*6a54128fSAndroid Build Coastguard Worker #define PR_0_BAD_MIN_EXTRA_ISIZE		0x00004D
278*6a54128fSAndroid Build Coastguard Worker 
279*6a54128fSAndroid Build Coastguard Worker /* Bad desired extra isize in superblock */
280*6a54128fSAndroid Build Coastguard Worker #define PR_0_BAD_WANT_EXTRA_ISIZE		0x00004E
281*6a54128fSAndroid Build Coastguard Worker 
282*6a54128fSAndroid Build Coastguard Worker /* Invalid quota inode number */
283*6a54128fSAndroid Build Coastguard Worker #define PR_0_INVALID_QUOTA_INO			0x00004F
284*6a54128fSAndroid Build Coastguard Worker 
285*6a54128fSAndroid Build Coastguard Worker /* Inode count in the superblock incorrect */
286*6a54128fSAndroid Build Coastguard Worker #define PR_0_INODE_COUNT_BIG			0x000050
287*6a54128fSAndroid Build Coastguard Worker 
288*6a54128fSAndroid Build Coastguard Worker /* Meta_bg and resize_inode are not compatible, remove resize_inode*/
289*6a54128fSAndroid Build Coastguard Worker #define PR_0_DISABLE_RESIZE_INODE		0x000051
290*6a54128fSAndroid Build Coastguard Worker 
291*6a54128fSAndroid Build Coastguard Worker /*
292*6a54128fSAndroid Build Coastguard Worker  * Pass 1 errors
293*6a54128fSAndroid Build Coastguard Worker  */
294*6a54128fSAndroid Build Coastguard Worker 
295*6a54128fSAndroid Build Coastguard Worker /* Pass 1: Checking inodes, blocks, and sizes */
296*6a54128fSAndroid Build Coastguard Worker #define PR_1_PASS_HEADER			0x010000
297*6a54128fSAndroid Build Coastguard Worker 
298*6a54128fSAndroid Build Coastguard Worker /* Root inode is not a directory */
299*6a54128fSAndroid Build Coastguard Worker #define PR_1_ROOT_NO_DIR			0x010001
300*6a54128fSAndroid Build Coastguard Worker 
301*6a54128fSAndroid Build Coastguard Worker /* Root inode has dtime set */
302*6a54128fSAndroid Build Coastguard Worker #define PR_1_ROOT_DTIME				0x010002
303*6a54128fSAndroid Build Coastguard Worker 
304*6a54128fSAndroid Build Coastguard Worker /* Reserved inode has bad mode */
305*6a54128fSAndroid Build Coastguard Worker #define PR_1_RESERVED_BAD_MODE			0x010003
306*6a54128fSAndroid Build Coastguard Worker 
307*6a54128fSAndroid Build Coastguard Worker /* Deleted inode inum has zero dtime */
308*6a54128fSAndroid Build Coastguard Worker #define PR_1_ZERO_DTIME				0x010004
309*6a54128fSAndroid Build Coastguard Worker 
310*6a54128fSAndroid Build Coastguard Worker /* Inode inum is in use, but has dtime set */
311*6a54128fSAndroid Build Coastguard Worker #define PR_1_SET_DTIME				0x010005
312*6a54128fSAndroid Build Coastguard Worker 
313*6a54128fSAndroid Build Coastguard Worker /* Inode inum is a zero-length directory */
314*6a54128fSAndroid Build Coastguard Worker #define PR_1_ZERO_LENGTH_DIR			0x010006
315*6a54128fSAndroid Build Coastguard Worker 
316*6a54128fSAndroid Build Coastguard Worker /* Group block bitmap at block conflicts with some other fs block */
317*6a54128fSAndroid Build Coastguard Worker #define PR_1_BB_CONFLICT			0x010007
318*6a54128fSAndroid Build Coastguard Worker 
319*6a54128fSAndroid Build Coastguard Worker /* Group inode bitmap at block conflicts with some other fs block */
320*6a54128fSAndroid Build Coastguard Worker #define PR_1_IB_CONFLICT			0x010008
321*6a54128fSAndroid Build Coastguard Worker 
322*6a54128fSAndroid Build Coastguard Worker /* Group inode table at block conflicts with some other fs block */
323*6a54128fSAndroid Build Coastguard Worker #define PR_1_ITABLE_CONFLICT			0x010009
324*6a54128fSAndroid Build Coastguard Worker 
325*6a54128fSAndroid Build Coastguard Worker /* Group block bitmap (block) is bad */
326*6a54128fSAndroid Build Coastguard Worker #define PR_1_BB_BAD_BLOCK			0x01000A
327*6a54128fSAndroid Build Coastguard Worker 
328*6a54128fSAndroid Build Coastguard Worker /* Group inode bitmap (block) is bad */
329*6a54128fSAndroid Build Coastguard Worker #define PR_1_IB_BAD_BLOCK			0x01000B
330*6a54128fSAndroid Build Coastguard Worker 
331*6a54128fSAndroid Build Coastguard Worker /* Inode i_size is small, should be larger */
332*6a54128fSAndroid Build Coastguard Worker #define PR_1_BAD_I_SIZE				0x01000C
333*6a54128fSAndroid Build Coastguard Worker 
334*6a54128fSAndroid Build Coastguard Worker /* Inode i_blocks is small, should be larger */
335*6a54128fSAndroid Build Coastguard Worker #define PR_1_BAD_I_BLOCKS			0x01000D
336*6a54128fSAndroid Build Coastguard Worker 
337*6a54128fSAndroid Build Coastguard Worker /* Illegal block number in inode */
338*6a54128fSAndroid Build Coastguard Worker #define PR_1_ILLEGAL_BLOCK_NUM			0x01000E
339*6a54128fSAndroid Build Coastguard Worker 
340*6a54128fSAndroid Build Coastguard Worker /* Block number overlaps filesystem metadata in inode */
341*6a54128fSAndroid Build Coastguard Worker #define PR_1_BLOCK_OVERLAPS_METADATA		0x01000F
342*6a54128fSAndroid Build Coastguard Worker 
343*6a54128fSAndroid Build Coastguard Worker /* Inode has illegal blocks (latch question) */
344*6a54128fSAndroid Build Coastguard Worker #define PR_1_INODE_BLOCK_LATCH			0x010010
345*6a54128fSAndroid Build Coastguard Worker 
346*6a54128fSAndroid Build Coastguard Worker /* Too many illegal blocks in inode */
347*6a54128fSAndroid Build Coastguard Worker #define	PR_1_TOO_MANY_BAD_BLOCKS		0x010011
348*6a54128fSAndroid Build Coastguard Worker 
349*6a54128fSAndroid Build Coastguard Worker /* Illegal block number in bad block inode */
350*6a54128fSAndroid Build Coastguard Worker #define PR_1_BB_ILLEGAL_BLOCK_NUM		0x010012
351*6a54128fSAndroid Build Coastguard Worker 
352*6a54128fSAndroid Build Coastguard Worker /* Bad block inode has illegal blocks (latch question) */
353*6a54128fSAndroid Build Coastguard Worker #define PR_1_INODE_BBLOCK_LATCH			0x010013
354*6a54128fSAndroid Build Coastguard Worker 
355*6a54128fSAndroid Build Coastguard Worker /* Duplicate or bad blocks in use! */
356*6a54128fSAndroid Build Coastguard Worker #define PR_1_DUP_BLOCKS_PREENSTOP		0x010014
357*6a54128fSAndroid Build Coastguard Worker 
358*6a54128fSAndroid Build Coastguard Worker /* Bad block number used as bad block inode indirect block */
359*6a54128fSAndroid Build Coastguard Worker #define PR_1_BBINODE_BAD_METABLOCK		0x010015
360*6a54128fSAndroid Build Coastguard Worker 
361*6a54128fSAndroid Build Coastguard Worker /* Inconsistency can't be fixed prompt */
362*6a54128fSAndroid Build Coastguard Worker #define PR_1_BBINODE_BAD_METABLOCK_PROMPT	0x010016
363*6a54128fSAndroid Build Coastguard Worker 
364*6a54128fSAndroid Build Coastguard Worker /* Bad primary block */
365*6a54128fSAndroid Build Coastguard Worker #define PR_1_BAD_PRIMARY_BLOCK			0x010017
366*6a54128fSAndroid Build Coastguard Worker 
367*6a54128fSAndroid Build Coastguard Worker /* Bad primary block prompt */
368*6a54128fSAndroid Build Coastguard Worker #define PR_1_BAD_PRIMARY_BLOCK_PROMPT		0x010018
369*6a54128fSAndroid Build Coastguard Worker 
370*6a54128fSAndroid Build Coastguard Worker /* The primary superblock block is on the bad block list */
371*6a54128fSAndroid Build Coastguard Worker #define PR_1_BAD_PRIMARY_SUPERBLOCK		0x010019
372*6a54128fSAndroid Build Coastguard Worker 
373*6a54128fSAndroid Build Coastguard Worker /* Bad primary block group descriptors */
374*6a54128fSAndroid Build Coastguard Worker #define PR_1_BAD_PRIMARY_GROUP_DESCRIPTOR	0x01001A
375*6a54128fSAndroid Build Coastguard Worker 
376*6a54128fSAndroid Build Coastguard Worker /* Warning: Group number's superblock (block) is bad */
377*6a54128fSAndroid Build Coastguard Worker #define PR_1_BAD_SUPERBLOCK			0x01001B
378*6a54128fSAndroid Build Coastguard Worker 
379*6a54128fSAndroid Build Coastguard Worker /* Warning: Group number's copy of the group descriptors has a bad block */
380*6a54128fSAndroid Build Coastguard Worker #define PR_1_BAD_GROUP_DESCRIPTORS		0x01001C
381*6a54128fSAndroid Build Coastguard Worker 
382*6a54128fSAndroid Build Coastguard Worker /* Block number claimed for no reason in process_bad_blocks */
383*6a54128fSAndroid Build Coastguard Worker #define PR_1_PROGERR_CLAIMED_BLOCK		0x01001D
384*6a54128fSAndroid Build Coastguard Worker 
385*6a54128fSAndroid Build Coastguard Worker /* Allocating number contiguous block(s) in block group number */
386*6a54128fSAndroid Build Coastguard Worker #define PR_1_RELOC_BLOCK_ALLOCATE		0x01001E
387*6a54128fSAndroid Build Coastguard Worker 
388*6a54128fSAndroid Build Coastguard Worker /* Allocating block buffer for relocating process */
389*6a54128fSAndroid Build Coastguard Worker #define PR_1_RELOC_MEMORY_ALLOCATE		0x01001F
390*6a54128fSAndroid Build Coastguard Worker 
391*6a54128fSAndroid Build Coastguard Worker /* Relocating group number's information from X to Y */
392*6a54128fSAndroid Build Coastguard Worker #define PR_1_RELOC_FROM_TO			0x010020
393*6a54128fSAndroid Build Coastguard Worker 
394*6a54128fSAndroid Build Coastguard Worker /* Relocating group number's information to X */
395*6a54128fSAndroid Build Coastguard Worker #define PR_1_RELOC_TO				0x010021
396*6a54128fSAndroid Build Coastguard Worker 
397*6a54128fSAndroid Build Coastguard Worker /* Warning: could not read block number of relocation process */
398*6a54128fSAndroid Build Coastguard Worker #define PR_1_RELOC_READ_ERR			0x010022
399*6a54128fSAndroid Build Coastguard Worker 
400*6a54128fSAndroid Build Coastguard Worker /* Warning: could not write block number of relocation process */
401*6a54128fSAndroid Build Coastguard Worker #define PR_1_RELOC_WRITE_ERR			0x010023
402*6a54128fSAndroid Build Coastguard Worker 
403*6a54128fSAndroid Build Coastguard Worker /* Error allocating inode bitmap */
404*6a54128fSAndroid Build Coastguard Worker #define PR_1_ALLOCATE_IBITMAP_ERROR		0x010024
405*6a54128fSAndroid Build Coastguard Worker 
406*6a54128fSAndroid Build Coastguard Worker /* Error allocating block bitmap */
407*6a54128fSAndroid Build Coastguard Worker #define PR_1_ALLOCATE_BBITMAP_ERROR		0x010025
408*6a54128fSAndroid Build Coastguard Worker 
409*6a54128fSAndroid Build Coastguard Worker /* Error allocating icount link information */
410*6a54128fSAndroid Build Coastguard Worker #define PR_1_ALLOCATE_ICOUNT			0x010026
411*6a54128fSAndroid Build Coastguard Worker 
412*6a54128fSAndroid Build Coastguard Worker /* Error allocating directory block array */
413*6a54128fSAndroid Build Coastguard Worker #define PR_1_ALLOCATE_DBCOUNT			0x010027
414*6a54128fSAndroid Build Coastguard Worker 
415*6a54128fSAndroid Build Coastguard Worker /* Error while scanning inodes */
416*6a54128fSAndroid Build Coastguard Worker #define PR_1_ISCAN_ERROR			0x010028
417*6a54128fSAndroid Build Coastguard Worker 
418*6a54128fSAndroid Build Coastguard Worker /* Error while iterating over blocks in inode */
419*6a54128fSAndroid Build Coastguard Worker #define PR_1_BLOCK_ITERATE			0x010029
420*6a54128fSAndroid Build Coastguard Worker 
421*6a54128fSAndroid Build Coastguard Worker /* Error storing inode count information */
422*6a54128fSAndroid Build Coastguard Worker #define PR_1_ICOUNT_STORE			0x01002A
423*6a54128fSAndroid Build Coastguard Worker 
424*6a54128fSAndroid Build Coastguard Worker /* Error storing directory block information */
425*6a54128fSAndroid Build Coastguard Worker #define PR_1_ADD_DBLOCK				0x01002B
426*6a54128fSAndroid Build Coastguard Worker 
427*6a54128fSAndroid Build Coastguard Worker /* Error reading inode (for clearing) */
428*6a54128fSAndroid Build Coastguard Worker #define PR_1_READ_INODE				0x01002C
429*6a54128fSAndroid Build Coastguard Worker 
430*6a54128fSAndroid Build Coastguard Worker /* Suppress messages prompt */
431*6a54128fSAndroid Build Coastguard Worker #define PR_1_SUPPRESS_MESSAGES			0x01002D
432*6a54128fSAndroid Build Coastguard Worker 
433*6a54128fSAndroid Build Coastguard Worker /* Imagic number has imagic flag set when fs doesn't support it */
434*6a54128fSAndroid Build Coastguard Worker #define PR_1_SET_IMAGIC				0x01002F
435*6a54128fSAndroid Build Coastguard Worker 
436*6a54128fSAndroid Build Coastguard Worker /* Immutable flag set on a device or socket inode */
437*6a54128fSAndroid Build Coastguard Worker #define PR_1_SET_IMMUTABLE			0x010030
438*6a54128fSAndroid Build Coastguard Worker 
439*6a54128fSAndroid Build Coastguard Worker /* Compression flag set on a non-compressed filesystem -- no longer used*/
440*6a54128fSAndroid Build Coastguard Worker /* #define PR_1_COMPR_SET			0x010031 */
441*6a54128fSAndroid Build Coastguard Worker 
442*6a54128fSAndroid Build Coastguard Worker /* Non-zero size on on device, fifo or socket inode */
443*6a54128fSAndroid Build Coastguard Worker #define PR_1_SET_NONZSIZE			0x010032
444*6a54128fSAndroid Build Coastguard Worker 
445*6a54128fSAndroid Build Coastguard Worker /* Filesystem has feature flag(s) set, but is a revision 0 filesystem */
446*6a54128fSAndroid Build Coastguard Worker #define PR_1_FS_REV_LEVEL			0x010033
447*6a54128fSAndroid Build Coastguard Worker 
448*6a54128fSAndroid Build Coastguard Worker /* Journal inode is not in use, but contains data */
449*6a54128fSAndroid Build Coastguard Worker #define PR_1_JOURNAL_INODE_NOT_CLEAR		0x010034
450*6a54128fSAndroid Build Coastguard Worker 
451*6a54128fSAndroid Build Coastguard Worker /* Journal is not a regular file */
452*6a54128fSAndroid Build Coastguard Worker #define PR_1_JOURNAL_BAD_MODE			0x010035
453*6a54128fSAndroid Build Coastguard Worker 
454*6a54128fSAndroid Build Coastguard Worker /* Inode that was part of the orphan list */
455*6a54128fSAndroid Build Coastguard Worker #define PR_1_LOW_DTIME				0x010036
456*6a54128fSAndroid Build Coastguard Worker 
457*6a54128fSAndroid Build Coastguard Worker /* Inodes that were part of a corrupted orphan linked list found
458*6a54128fSAndroid Build Coastguard Worker  * (latch question) */
459*6a54128fSAndroid Build Coastguard Worker #define PR_1_ORPHAN_LIST_REFUGEES		0x010037
460*6a54128fSAndroid Build Coastguard Worker 
461*6a54128fSAndroid Build Coastguard Worker /* Error allocating refcount structure */
462*6a54128fSAndroid Build Coastguard Worker #define PR_1_ALLOCATE_REFCOUNT			0x010038
463*6a54128fSAndroid Build Coastguard Worker 
464*6a54128fSAndroid Build Coastguard Worker /* Error reading extended attribute block */
465*6a54128fSAndroid Build Coastguard Worker #define PR_1_READ_EA_BLOCK			0x010039
466*6a54128fSAndroid Build Coastguard Worker 
467*6a54128fSAndroid Build Coastguard Worker /* Inode number has a bad extended attribute block */
468*6a54128fSAndroid Build Coastguard Worker #define PR_1_BAD_EA_BLOCK			0x01003A
469*6a54128fSAndroid Build Coastguard Worker 
470*6a54128fSAndroid Build Coastguard Worker /* Error reading Extended Attribute block while fixing refcount -- abort */
471*6a54128fSAndroid Build Coastguard Worker #define PR_1_EXTATTR_READ_ABORT			0x01003B
472*6a54128fSAndroid Build Coastguard Worker 
473*6a54128fSAndroid Build Coastguard Worker /* Extended attribute number has reference count incorrect, should be */
474*6a54128fSAndroid Build Coastguard Worker #define PR_1_EXTATTR_REFCOUNT			0x01003C
475*6a54128fSAndroid Build Coastguard Worker 
476*6a54128fSAndroid Build Coastguard Worker /* Error writing Extended Attribute block while fixing refcount */
477*6a54128fSAndroid Build Coastguard Worker #define PR_1_EXTATTR_WRITE_ABORT		0x01003D
478*6a54128fSAndroid Build Coastguard Worker 
479*6a54128fSAndroid Build Coastguard Worker /* Extended attribute block has h_blocks > 1 */
480*6a54128fSAndroid Build Coastguard Worker #define PR_1_EA_MULTI_BLOCK			0x01003E
481*6a54128fSAndroid Build Coastguard Worker 
482*6a54128fSAndroid Build Coastguard Worker /* Allocating extended attribute region allocation structure */
483*6a54128fSAndroid Build Coastguard Worker #define PR_1_EA_ALLOC_REGION_ABORT		0x01003F
484*6a54128fSAndroid Build Coastguard Worker 
485*6a54128fSAndroid Build Coastguard Worker /* Extended Attribute block number is corrupt (allocation collision) */
486*6a54128fSAndroid Build Coastguard Worker #define PR_1_EA_ALLOC_COLLISION			0x010040
487*6a54128fSAndroid Build Coastguard Worker 
488*6a54128fSAndroid Build Coastguard Worker /* Extended attribute block number is corrupt (invalid name) */
489*6a54128fSAndroid Build Coastguard Worker #define PR_1_EA_BAD_NAME			0x010041
490*6a54128fSAndroid Build Coastguard Worker 
491*6a54128fSAndroid Build Coastguard Worker /* Extended attribute block number is corrupt (invalid value) */
492*6a54128fSAndroid Build Coastguard Worker #define PR_1_EA_BAD_VALUE			0x010042
493*6a54128fSAndroid Build Coastguard Worker 
494*6a54128fSAndroid Build Coastguard Worker /* Inode number is too big (latch question) */
495*6a54128fSAndroid Build Coastguard Worker #define PR_1_INODE_TOOBIG			0x010043
496*6a54128fSAndroid Build Coastguard Worker 
497*6a54128fSAndroid Build Coastguard Worker /* Problem causes directory to be too big */
498*6a54128fSAndroid Build Coastguard Worker #define PR_1_TOOBIG_DIR				0x010044
499*6a54128fSAndroid Build Coastguard Worker 
500*6a54128fSAndroid Build Coastguard Worker /* Problem causes file to be too big */
501*6a54128fSAndroid Build Coastguard Worker #define PR_1_TOOBIG_REG				0x010045
502*6a54128fSAndroid Build Coastguard Worker 
503*6a54128fSAndroid Build Coastguard Worker /* Problem causes symlink to be too big */
504*6a54128fSAndroid Build Coastguard Worker #define PR_1_TOOBIG_SYMLINK			0x010046
505*6a54128fSAndroid Build Coastguard Worker 
506*6a54128fSAndroid Build Coastguard Worker /* Inode has INDEX_FL flag set on filesystem without htree support  */
507*6a54128fSAndroid Build Coastguard Worker #define PR_1_HTREE_SET				0x010047
508*6a54128fSAndroid Build Coastguard Worker 
509*6a54128fSAndroid Build Coastguard Worker /* Inode number has INDEX_FL flag set but is on a directory */
510*6a54128fSAndroid Build Coastguard Worker #define PR_1_HTREE_NODIR			0x010048
511*6a54128fSAndroid Build Coastguard Worker 
512*6a54128fSAndroid Build Coastguard Worker /* htree directory has an invalid root node */
513*6a54128fSAndroid Build Coastguard Worker #define PR_1_HTREE_BADROOT			0x010049
514*6a54128fSAndroid Build Coastguard Worker 
515*6a54128fSAndroid Build Coastguard Worker /* Htree directory has an unsupported hash version */
516*6a54128fSAndroid Build Coastguard Worker #define PR_1_HTREE_HASHV			0x01004A
517*6a54128fSAndroid Build Coastguard Worker 
518*6a54128fSAndroid Build Coastguard Worker /* Htree directory uses an Incompatible htree root node flag */
519*6a54128fSAndroid Build Coastguard Worker #define PR_1_HTREE_INCOMPAT			0x01004B
520*6a54128fSAndroid Build Coastguard Worker 
521*6a54128fSAndroid Build Coastguard Worker /* Htree directory has a tree depth which is too big */
522*6a54128fSAndroid Build Coastguard Worker #define PR_1_HTREE_DEPTH			0x01004C
523*6a54128fSAndroid Build Coastguard Worker 
524*6a54128fSAndroid Build Coastguard Worker /* Bad block inode has an indirect block number that conflicts with
525*6a54128fSAndroid Build Coastguard Worker  * filesystem metadata */
526*6a54128fSAndroid Build Coastguard Worker #define PR_1_BB_FS_BLOCK			0x01004D
527*6a54128fSAndroid Build Coastguard Worker 
528*6a54128fSAndroid Build Coastguard Worker /* Resize inode (re)creation failed */
529*6a54128fSAndroid Build Coastguard Worker #define PR_1_RESIZE_INODE_CREATE		0x01004E
530*6a54128fSAndroid Build Coastguard Worker 
531*6a54128fSAndroid Build Coastguard Worker /* inode has a extra size i_extra_isize which is invalid */
532*6a54128fSAndroid Build Coastguard Worker #define PR_1_EXTRA_ISIZE			0x01004F
533*6a54128fSAndroid Build Coastguard Worker 
534*6a54128fSAndroid Build Coastguard Worker /* Extended attribute in inode has a namelen which is invalid */
535*6a54128fSAndroid Build Coastguard Worker #define PR_1_ATTR_NAME_LEN			0x010050
536*6a54128fSAndroid Build Coastguard Worker 
537*6a54128fSAndroid Build Coastguard Worker /* Extended attribute in inode has a value offset which is invalid */
538*6a54128fSAndroid Build Coastguard Worker #define PR_1_ATTR_VALUE_OFFSET			0x010051
539*6a54128fSAndroid Build Coastguard Worker 
540*6a54128fSAndroid Build Coastguard Worker /* extended attribute in inode has a value block which is invalid */
541*6a54128fSAndroid Build Coastguard Worker #define PR_1_ATTR_VALUE_BLOCK			0x010052
542*6a54128fSAndroid Build Coastguard Worker 
543*6a54128fSAndroid Build Coastguard Worker /* extended attribute in inode has a value size which is invalid */
544*6a54128fSAndroid Build Coastguard Worker #define PR_1_ATTR_VALUE_SIZE			0x010053
545*6a54128fSAndroid Build Coastguard Worker 
546*6a54128fSAndroid Build Coastguard Worker /* extended attribute in inode has a hash which is invalid */
547*6a54128fSAndroid Build Coastguard Worker #define PR_1_ATTR_HASH				0x010054
548*6a54128fSAndroid Build Coastguard Worker 
549*6a54128fSAndroid Build Coastguard Worker /* inode is a type but it looks like it is really a directory */
550*6a54128fSAndroid Build Coastguard Worker #define PR_1_TREAT_AS_DIRECTORY			0x010055
551*6a54128fSAndroid Build Coastguard Worker 
552*6a54128fSAndroid Build Coastguard Worker /* Error while reading extent tree in inode */
553*6a54128fSAndroid Build Coastguard Worker #define PR_1_READ_EXTENT			0x010056
554*6a54128fSAndroid Build Coastguard Worker 
555*6a54128fSAndroid Build Coastguard Worker /* Failure to iterate extents in inode */
556*6a54128fSAndroid Build Coastguard Worker #define PR_1_EXTENT_ITERATE_FAILURE		0x010057
557*6a54128fSAndroid Build Coastguard Worker 
558*6a54128fSAndroid Build Coastguard Worker /* Inode has an invalid extent starting block */
559*6a54128fSAndroid Build Coastguard Worker #define PR_1_EXTENT_BAD_START_BLK		0x010058
560*6a54128fSAndroid Build Coastguard Worker 
561*6a54128fSAndroid Build Coastguard Worker /* Inode has an invalid extent that ends beyond filesystem */
562*6a54128fSAndroid Build Coastguard Worker #define PR_1_EXTENT_ENDS_BEYOND			0x010059
563*6a54128fSAndroid Build Coastguard Worker 
564*6a54128fSAndroid Build Coastguard Worker /* inode has EXTENTS_FL flag set on filesystem without extents support */
565*6a54128fSAndroid Build Coastguard Worker #define PR_1_EXTENTS_SET			0x01005A
566*6a54128fSAndroid Build Coastguard Worker 
567*6a54128fSAndroid Build Coastguard Worker /* inode is in extents format, but superblock is missing EXTENTS feature */
568*6a54128fSAndroid Build Coastguard Worker #define PR_1_EXTENT_FEATURE			0x01005B
569*6a54128fSAndroid Build Coastguard Worker 
570*6a54128fSAndroid Build Coastguard Worker /* inode missing EXTENTS_FL, but is an extent inode */
571*6a54128fSAndroid Build Coastguard Worker #define PR_1_UNSET_EXTENT_FL			0x01005C
572*6a54128fSAndroid Build Coastguard Worker 
573*6a54128fSAndroid Build Coastguard Worker /* Fast symlink has EXTENTS_FL set */
574*6a54128fSAndroid Build Coastguard Worker #define PR_1_FAST_SYMLINK_EXTENT_FL		0x01005D
575*6a54128fSAndroid Build Coastguard Worker 
576*6a54128fSAndroid Build Coastguard Worker /* Extents are out of order */
577*6a54128fSAndroid Build Coastguard Worker #define PR_1_OUT_OF_ORDER_EXTENTS		0x01005E
578*6a54128fSAndroid Build Coastguard Worker 
579*6a54128fSAndroid Build Coastguard Worker /* Extent node header invalid */
580*6a54128fSAndroid Build Coastguard Worker #define PR_1_EXTENT_HEADER_INVALID		0x01005F
581*6a54128fSAndroid Build Coastguard Worker 
582*6a54128fSAndroid Build Coastguard Worker /* PR_1_EOFBLOCKS_FL_SET 0x010060 was here */
583*6a54128fSAndroid Build Coastguard Worker 
584*6a54128fSAndroid Build Coastguard Worker /* Failed to convert subcluster block bitmap */
585*6a54128fSAndroid Build Coastguard Worker #define PR_1_CONVERT_SUBCLUSTER			0x010061
586*6a54128fSAndroid Build Coastguard Worker 
587*6a54128fSAndroid Build Coastguard Worker /* Quota inode is not a regular file */
588*6a54128fSAndroid Build Coastguard Worker #define PR_1_QUOTA_BAD_MODE			0x010062
589*6a54128fSAndroid Build Coastguard Worker 
590*6a54128fSAndroid Build Coastguard Worker /* Quota inode is not in use, but contains data */
591*6a54128fSAndroid Build Coastguard Worker #define PR_1_QUOTA_INODE_NOT_CLEAR		0x010063
592*6a54128fSAndroid Build Coastguard Worker 
593*6a54128fSAndroid Build Coastguard Worker /* Quota inode is visible to the user */
594*6a54128fSAndroid Build Coastguard Worker #define PR_1_QUOTA_INODE_NOT_HIDDEN		0x010064
595*6a54128fSAndroid Build Coastguard Worker 
596*6a54128fSAndroid Build Coastguard Worker /* The bad block inode looks invalid */
597*6a54128fSAndroid Build Coastguard Worker #define PR_1_INVALID_BAD_INODE			0x010065
598*6a54128fSAndroid Build Coastguard Worker 
599*6a54128fSAndroid Build Coastguard Worker /* Extent has zero length extent */
600*6a54128fSAndroid Build Coastguard Worker #define PR_1_EXTENT_LENGTH_ZERO			0x010066
601*6a54128fSAndroid Build Coastguard Worker 
602*6a54128fSAndroid Build Coastguard Worker /* inode seems to contain garbage */
603*6a54128fSAndroid Build Coastguard Worker #define PR_1_INODE_IS_GARBAGE			0x010067
604*6a54128fSAndroid Build Coastguard Worker 
605*6a54128fSAndroid Build Coastguard Worker /* inode passes checks, but checksum does not match inode */
606*6a54128fSAndroid Build Coastguard Worker #define PR_1_INODE_ONLY_CSUM_INVALID		0x010068
607*6a54128fSAndroid Build Coastguard Worker 
608*6a54128fSAndroid Build Coastguard Worker /* Inode extended attribute is corrupt (allocation collision) */
609*6a54128fSAndroid Build Coastguard Worker #define PR_1_INODE_EA_ALLOC_COLLISION		0x010069
610*6a54128fSAndroid Build Coastguard Worker 
611*6a54128fSAndroid Build Coastguard Worker /* Inode extent block passes checks, but checksum does not match extent */
612*6a54128fSAndroid Build Coastguard Worker #define PR_1_EXTENT_ONLY_CSUM_INVALID		0x01006A
613*6a54128fSAndroid Build Coastguard Worker 
614*6a54128fSAndroid Build Coastguard Worker /* Inode extended attribute block passes checks, but checksum does not
615*6a54128fSAndroid Build Coastguard Worker  * match block. */
616*6a54128fSAndroid Build Coastguard Worker #define PR_1_EA_BLOCK_ONLY_CSUM_INVALID		0x01006C
617*6a54128fSAndroid Build Coastguard Worker 
618*6a54128fSAndroid Build Coastguard Worker /* Interior extent node level number of inode doesn't first node down */
619*6a54128fSAndroid Build Coastguard Worker #define PR_1_EXTENT_INDEX_START_INVALID		0x01006D
620*6a54128fSAndroid Build Coastguard Worker 
621*6a54128fSAndroid Build Coastguard Worker /* Inode end of extent exceeds allowed value */
622*6a54128fSAndroid Build Coastguard Worker #define PR_1_EXTENT_END_OUT_OF_BOUNDS		0x01006E
623*6a54128fSAndroid Build Coastguard Worker 
624*6a54128fSAndroid Build Coastguard Worker /* inode has INLINE_DATA_FL flag on filesystem without inline data */
625*6a54128fSAndroid Build Coastguard Worker #define PR_1_INLINE_DATA_FEATURE		0x01006F
626*6a54128fSAndroid Build Coastguard Worker 
627*6a54128fSAndroid Build Coastguard Worker /* inode has INLINE_DATA_FL flag on filesystem without inline data */
628*6a54128fSAndroid Build Coastguard Worker #define PR_1_INLINE_DATA_SET			0x010070
629*6a54128fSAndroid Build Coastguard Worker 
630*6a54128fSAndroid Build Coastguard Worker /* Inode block conflicts with critical metadata, skipping block checks */
631*6a54128fSAndroid Build Coastguard Worker #define PR_1_CRITICAL_METADATA_COLLISION	0x010071
632*6a54128fSAndroid Build Coastguard Worker 
633*6a54128fSAndroid Build Coastguard Worker /* Directory inode block <block> should be at block <otherblock> */
634*6a54128fSAndroid Build Coastguard Worker #define PR_1_COLLAPSE_DBLOCK			0x010072
635*6a54128fSAndroid Build Coastguard Worker 
636*6a54128fSAndroid Build Coastguard Worker /* Directory inode block <block> should be at block <otherblock> */
637*6a54128fSAndroid Build Coastguard Worker #define PR_1_UNINIT_DBLOCK			0x010073
638*6a54128fSAndroid Build Coastguard Worker 
639*6a54128fSAndroid Build Coastguard Worker /* Inode logical block (physical block) violates cluster allocation */
640*6a54128fSAndroid Build Coastguard Worker #define PR_1_MISALIGNED_CLUSTER			0x010074
641*6a54128fSAndroid Build Coastguard Worker 
642*6a54128fSAndroid Build Coastguard Worker /* Inode has INLINE_DATA_FL flag but extended attribute not found */
643*6a54128fSAndroid Build Coastguard Worker #define PR_1_INLINE_DATA_NO_ATTR		0x010075
644*6a54128fSAndroid Build Coastguard Worker 
645*6a54128fSAndroid Build Coastguard Worker /* Special (device/socket/fifo) file (inode num) has extents
646*6a54128fSAndroid Build Coastguard Worker  * or inline-data flag set */
647*6a54128fSAndroid Build Coastguard Worker #define PR_1_SPECIAL_EXTENTS_IDATA		0x010076
648*6a54128fSAndroid Build Coastguard Worker 
649*6a54128fSAndroid Build Coastguard Worker /* Inode has extent header but inline data flag is set */
650*6a54128fSAndroid Build Coastguard Worker #define PR_1_CLEAR_INLINE_DATA_FOR_EXTENT	0x010077
651*6a54128fSAndroid Build Coastguard Worker 
652*6a54128fSAndroid Build Coastguard Worker /* Inode seems to have inline data but extent flag is set */
653*6a54128fSAndroid Build Coastguard Worker #define PR_1_CLEAR_EXTENT_FOR_INLINE_DATA	0x010078
654*6a54128fSAndroid Build Coastguard Worker 
655*6a54128fSAndroid Build Coastguard Worker /* Inode seems to have block map but inline data and extent flags set */
656*6a54128fSAndroid Build Coastguard Worker #define PR_1_CLEAR_EXTENT_INLINE_DATA_FLAGS	0x010079
657*6a54128fSAndroid Build Coastguard Worker 
658*6a54128fSAndroid Build Coastguard Worker /* Inode has inline data and extent flags but i_block contains junk */
659*6a54128fSAndroid Build Coastguard Worker #define PR_1_CLEAR_EXTENT_INLINE_DATA_INODE	0x01007A
660*6a54128fSAndroid Build Coastguard Worker 
661*6a54128fSAndroid Build Coastguard Worker /* Bad block list says the bad block list inode is bad */
662*6a54128fSAndroid Build Coastguard Worker #define PR_1_BADBLOCKS_IN_BADBLOCKS		0x01007B
663*6a54128fSAndroid Build Coastguard Worker 
664*6a54128fSAndroid Build Coastguard Worker /* Error allocating extent region allocation structure */
665*6a54128fSAndroid Build Coastguard Worker #define PR_1_EXTENT_ALLOC_REGION_ABORT		0x01007C
666*6a54128fSAndroid Build Coastguard Worker 
667*6a54128fSAndroid Build Coastguard Worker /* Inode leaf has a duplicate extent mapping */
668*6a54128fSAndroid Build Coastguard Worker #define PR_1_EXTENT_COLLISION			0x01007D
669*6a54128fSAndroid Build Coastguard Worker 
670*6a54128fSAndroid Build Coastguard Worker /* Error allocating memory for encrypted inode list */
671*6a54128fSAndroid Build Coastguard Worker #define PR_1_ALLOCATE_ENCRYPTED_INODE_LIST	0x01007E
672*6a54128fSAndroid Build Coastguard Worker 
673*6a54128fSAndroid Build Coastguard Worker /* Inode extent tree could be more shallow */
674*6a54128fSAndroid Build Coastguard Worker #define PR_1_EXTENT_BAD_MAX_DEPTH		0x01007F
675*6a54128fSAndroid Build Coastguard Worker 
676*6a54128fSAndroid Build Coastguard Worker /* inode num on bigalloc filesystem cannot be block mapped */
677*6a54128fSAndroid Build Coastguard Worker #define PR_1_NO_BIGALLOC_BLOCKMAP_FILES		0x010080
678*6a54128fSAndroid Build Coastguard Worker 
679*6a54128fSAndroid Build Coastguard Worker /* Inode has corrupt extent header */
680*6a54128fSAndroid Build Coastguard Worker #define PR_1_MISSING_EXTENT_HEADER		0x010081
681*6a54128fSAndroid Build Coastguard Worker 
682*6a54128fSAndroid Build Coastguard Worker /* Timestamp(s) on inode beyond 2310-04-04 are likely pre-1970. */
683*6a54128fSAndroid Build Coastguard Worker #define PR_1_EA_TIME_OUT_OF_RANGE		0x010082
684*6a54128fSAndroid Build Coastguard Worker 
685*6a54128fSAndroid Build Coastguard Worker /* Inode has illegal EA value inode */
686*6a54128fSAndroid Build Coastguard Worker #define PR_1_ATTR_VALUE_EA_INODE		0x010083
687*6a54128fSAndroid Build Coastguard Worker 
688*6a54128fSAndroid Build Coastguard Worker /* Parent inode has invalid EA entry. EA inode does not have
689*6a54128fSAndroid Build Coastguard Worker  * EXT4_EA_INODE_FL flag. Delete EA entry? */
690*6a54128fSAndroid Build Coastguard Worker #define PR_1_ATTR_NO_EA_INODE_FL		0x010085
691*6a54128fSAndroid Build Coastguard Worker 
692*6a54128fSAndroid Build Coastguard Worker /* EA inode for parent inode does not have EXT4_EA_INODE_FL flag */
693*6a54128fSAndroid Build Coastguard Worker #define PR_1_ATTR_SET_EA_INODE_FL		0x010086
694*6a54128fSAndroid Build Coastguard Worker 
695*6a54128fSAndroid Build Coastguard Worker /* Offer to clear uninitialized flag on an extent */
696*6a54128fSAndroid Build Coastguard Worker #define PR_1_CLEAR_UNINIT_EXTENT		0x010087
697*6a54128fSAndroid Build Coastguard Worker 
698*6a54128fSAndroid Build Coastguard Worker /* Casefold flag set on a non-directory */
699*6a54128fSAndroid Build Coastguard Worker #define PR_1_CASEFOLD_NONDIR			0x010088
700*6a54128fSAndroid Build Coastguard Worker 
701*6a54128fSAndroid Build Coastguard Worker /* Casefold flag set, but file system is missing the casefold feature */
702*6a54128fSAndroid Build Coastguard Worker #define PR_1_CASEFOLD_FEATURE			0x010089
703*6a54128fSAndroid Build Coastguard Worker 
704*6a54128fSAndroid Build Coastguard Worker /* Inode has encrypt flag but no encryption extended attribute */
705*6a54128fSAndroid Build Coastguard Worker #define PR_1_MISSING_ENCRYPTION_XATTR		0x01008A
706*6a54128fSAndroid Build Coastguard Worker 
707*6a54128fSAndroid Build Coastguard Worker /* Encrypted inode has corrupt encryption extended attribute */
708*6a54128fSAndroid Build Coastguard Worker #define PR_1_CORRUPT_ENCRYPTION_XATTR		0x01008B
709*6a54128fSAndroid Build Coastguard Worker 
710*6a54128fSAndroid Build Coastguard Worker /* Error allocating memory for casefolded directory list */
711*6a54128fSAndroid Build Coastguard Worker #define PR_1_ALLOCATE_CASEFOLDED_DIRLIST	0x01008C
712*6a54128fSAndroid Build Coastguard Worker 
713*6a54128fSAndroid Build Coastguard Worker /* Htree directory should use SipHash but does not */
714*6a54128fSAndroid Build Coastguard Worker #define PR_1_HTREE_NEEDS_SIPHASH		0x01008D
715*6a54128fSAndroid Build Coastguard Worker 
716*6a54128fSAndroid Build Coastguard Worker /* Htree directory uses SipHash but should not */
717*6a54128fSAndroid Build Coastguard Worker #define PR_1_HTREE_CANNOT_SIPHASH		0x01008E
718*6a54128fSAndroid Build Coastguard Worker 
719*6a54128fSAndroid Build Coastguard Worker 
720*6a54128fSAndroid Build Coastguard Worker /*
721*6a54128fSAndroid Build Coastguard Worker  * Pass 1b errors
722*6a54128fSAndroid Build Coastguard Worker  */
723*6a54128fSAndroid Build Coastguard Worker 
724*6a54128fSAndroid Build Coastguard Worker /* Pass 1B: Rescan for duplicate/bad blocks */
725*6a54128fSAndroid Build Coastguard Worker #define PR_1B_PASS_HEADER	0x011000
726*6a54128fSAndroid Build Coastguard Worker 
727*6a54128fSAndroid Build Coastguard Worker /* Duplicate/bad block(s) header */
728*6a54128fSAndroid Build Coastguard Worker #define PR_1B_DUP_BLOCK_HEADER	0x011001
729*6a54128fSAndroid Build Coastguard Worker 
730*6a54128fSAndroid Build Coastguard Worker /* Duplicate/bad block(s) in inode */
731*6a54128fSAndroid Build Coastguard Worker #define PR_1B_DUP_BLOCK		0x011002
732*6a54128fSAndroid Build Coastguard Worker 
733*6a54128fSAndroid Build Coastguard Worker /* Duplicate/bad block(s) end */
734*6a54128fSAndroid Build Coastguard Worker #define PR_1B_DUP_BLOCK_END	0x011003
735*6a54128fSAndroid Build Coastguard Worker 
736*6a54128fSAndroid Build Coastguard Worker /* Error while scanning inodes */
737*6a54128fSAndroid Build Coastguard Worker #define PR_1B_ISCAN_ERROR	0x011004
738*6a54128fSAndroid Build Coastguard Worker 
739*6a54128fSAndroid Build Coastguard Worker /* Error allocating inode bitmap */
740*6a54128fSAndroid Build Coastguard Worker #define PR_1B_ALLOCATE_IBITMAP_ERROR 0x011005
741*6a54128fSAndroid Build Coastguard Worker 
742*6a54128fSAndroid Build Coastguard Worker /* Error while iterating over blocks */
743*6a54128fSAndroid Build Coastguard Worker #define PR_1B_BLOCK_ITERATE	0x011006
744*6a54128fSAndroid Build Coastguard Worker 
745*6a54128fSAndroid Build Coastguard Worker /* Error adjusting EA refcount */
746*6a54128fSAndroid Build Coastguard Worker #define PR_1B_ADJ_EA_REFCOUNT	0x011007
747*6a54128fSAndroid Build Coastguard Worker 
748*6a54128fSAndroid Build Coastguard Worker /* Duplicate/bad block range in inode */
749*6a54128fSAndroid Build Coastguard Worker #define PR_1B_DUP_RANGE		0x011008
750*6a54128fSAndroid Build Coastguard Worker 
751*6a54128fSAndroid Build Coastguard Worker /* Pass 1C: Scan directories for inodes with dup blocks. */
752*6a54128fSAndroid Build Coastguard Worker #define PR_1C_PASS_HEADER	0x012000
753*6a54128fSAndroid Build Coastguard Worker 
754*6a54128fSAndroid Build Coastguard Worker 
755*6a54128fSAndroid Build Coastguard Worker /* Pass 1D: Reconciling duplicate blocks */
756*6a54128fSAndroid Build Coastguard Worker #define PR_1D_PASS_HEADER	0x013000
757*6a54128fSAndroid Build Coastguard Worker 
758*6a54128fSAndroid Build Coastguard Worker /* File has duplicate blocks */
759*6a54128fSAndroid Build Coastguard Worker #define PR_1D_DUP_FILE		0x013001
760*6a54128fSAndroid Build Coastguard Worker 
761*6a54128fSAndroid Build Coastguard Worker /* List of files sharing duplicate blocks */
762*6a54128fSAndroid Build Coastguard Worker #define PR_1D_DUP_FILE_LIST	0x013002
763*6a54128fSAndroid Build Coastguard Worker 
764*6a54128fSAndroid Build Coastguard Worker /* File sharing blocks with filesystem metadata  */
765*6a54128fSAndroid Build Coastguard Worker #define PR_1D_SHARE_METADATA	0x013003
766*6a54128fSAndroid Build Coastguard Worker 
767*6a54128fSAndroid Build Coastguard Worker /* Report of how many duplicate/bad inodes */
768*6a54128fSAndroid Build Coastguard Worker #define PR_1D_NUM_DUP_INODES	0x013004
769*6a54128fSAndroid Build Coastguard Worker 
770*6a54128fSAndroid Build Coastguard Worker /* Duplicated blocks already reassigned or cloned. */
771*6a54128fSAndroid Build Coastguard Worker #define PR_1D_DUP_BLOCKS_DEALT	0x013005
772*6a54128fSAndroid Build Coastguard Worker 
773*6a54128fSAndroid Build Coastguard Worker /* Clone duplicate/bad blocks? */
774*6a54128fSAndroid Build Coastguard Worker #define PR_1D_CLONE_QUESTION	0x013006
775*6a54128fSAndroid Build Coastguard Worker 
776*6a54128fSAndroid Build Coastguard Worker /* Delete file? */
777*6a54128fSAndroid Build Coastguard Worker #define PR_1D_DELETE_QUESTION	0x013007
778*6a54128fSAndroid Build Coastguard Worker 
779*6a54128fSAndroid Build Coastguard Worker /* Couldn't clone file (error) */
780*6a54128fSAndroid Build Coastguard Worker #define PR_1D_CLONE_ERROR	0x013008
781*6a54128fSAndroid Build Coastguard Worker 
782*6a54128fSAndroid Build Coastguard Worker /*
783*6a54128fSAndroid Build Coastguard Worker  * Pass 1e --- rebuilding extent trees
784*6a54128fSAndroid Build Coastguard Worker  */
785*6a54128fSAndroid Build Coastguard Worker /* Pass 1e: Rebuilding extent trees */
786*6a54128fSAndroid Build Coastguard Worker #define PR_1E_PASS_HEADER		0x014000
787*6a54128fSAndroid Build Coastguard Worker 
788*6a54128fSAndroid Build Coastguard Worker /* Error rehash directory */
789*6a54128fSAndroid Build Coastguard Worker #define PR_1E_OPTIMIZE_EXT_ERR		0x014001
790*6a54128fSAndroid Build Coastguard Worker 
791*6a54128fSAndroid Build Coastguard Worker /* Rebuilding extent trees */
792*6a54128fSAndroid Build Coastguard Worker #define PR_1E_OPTIMIZE_EXT_HEADER	0x014002
793*6a54128fSAndroid Build Coastguard Worker 
794*6a54128fSAndroid Build Coastguard Worker /* Rebuilding extent %d */
795*6a54128fSAndroid Build Coastguard Worker #define PR_1E_OPTIMIZE_EXT		0x014003
796*6a54128fSAndroid Build Coastguard Worker 
797*6a54128fSAndroid Build Coastguard Worker /* Rebuilding extent tree end */
798*6a54128fSAndroid Build Coastguard Worker #define PR_1E_OPTIMIZE_EXT_END		0x014004
799*6a54128fSAndroid Build Coastguard Worker 
800*6a54128fSAndroid Build Coastguard Worker /* Internal error: extent tree depth too large */
801*6a54128fSAndroid Build Coastguard Worker #define PR_1E_MAX_EXTENT_TREE_DEPTH	0x014005
802*6a54128fSAndroid Build Coastguard Worker 
803*6a54128fSAndroid Build Coastguard Worker /* Inode extent tree could be shorter */
804*6a54128fSAndroid Build Coastguard Worker #define PR_1E_CAN_COLLAPSE_EXTENT_TREE	0x014006
805*6a54128fSAndroid Build Coastguard Worker 
806*6a54128fSAndroid Build Coastguard Worker /* Inode extent tree could be narrower */
807*6a54128fSAndroid Build Coastguard Worker #define PR_1E_CAN_NARROW_EXTENT_TREE	0x014007
808*6a54128fSAndroid Build Coastguard Worker 
809*6a54128fSAndroid Build Coastguard Worker /*
810*6a54128fSAndroid Build Coastguard Worker  * Pass 2 errors
811*6a54128fSAndroid Build Coastguard Worker  */
812*6a54128fSAndroid Build Coastguard Worker 
813*6a54128fSAndroid Build Coastguard Worker /* Pass 2: Checking directory structure */
814*6a54128fSAndroid Build Coastguard Worker #define PR_2_PASS_HEADER	0x020000
815*6a54128fSAndroid Build Coastguard Worker 
816*6a54128fSAndroid Build Coastguard Worker /* Bad inode number for '.' */
817*6a54128fSAndroid Build Coastguard Worker #define PR_2_BAD_INODE_DOT	0x020001
818*6a54128fSAndroid Build Coastguard Worker 
819*6a54128fSAndroid Build Coastguard Worker /* Directory entry has bad inode number */
820*6a54128fSAndroid Build Coastguard Worker #define PR_2_BAD_INO		0x020002
821*6a54128fSAndroid Build Coastguard Worker 
822*6a54128fSAndroid Build Coastguard Worker /* Directory entry has deleted or unused inode */
823*6a54128fSAndroid Build Coastguard Worker #define PR_2_UNUSED_INODE	0x020003
824*6a54128fSAndroid Build Coastguard Worker 
825*6a54128fSAndroid Build Coastguard Worker /* Directory entry is link to '.' */
826*6a54128fSAndroid Build Coastguard Worker #define PR_2_LINK_DOT		0x020004
827*6a54128fSAndroid Build Coastguard Worker 
828*6a54128fSAndroid Build Coastguard Worker /* Directory entry points to inode now located in a bad block */
829*6a54128fSAndroid Build Coastguard Worker #define PR_2_BB_INODE		0x020005
830*6a54128fSAndroid Build Coastguard Worker 
831*6a54128fSAndroid Build Coastguard Worker /* Directory entry contains a link to a directory */
832*6a54128fSAndroid Build Coastguard Worker #define PR_2_LINK_DIR		0x020006
833*6a54128fSAndroid Build Coastguard Worker 
834*6a54128fSAndroid Build Coastguard Worker /* Directory entry contains a link to the root directory */
835*6a54128fSAndroid Build Coastguard Worker #define PR_2_LINK_ROOT		0x020007
836*6a54128fSAndroid Build Coastguard Worker 
837*6a54128fSAndroid Build Coastguard Worker /* Directory entry has illegal characters in its name */
838*6a54128fSAndroid Build Coastguard Worker #define PR_2_BAD_NAME		0x020008
839*6a54128fSAndroid Build Coastguard Worker 
840*6a54128fSAndroid Build Coastguard Worker /* Missing '.' in directory inode */
841*6a54128fSAndroid Build Coastguard Worker #define PR_2_MISSING_DOT	0x020009
842*6a54128fSAndroid Build Coastguard Worker 
843*6a54128fSAndroid Build Coastguard Worker /* Missing '..' in directory inode */
844*6a54128fSAndroid Build Coastguard Worker #define PR_2_MISSING_DOT_DOT	0x02000A
845*6a54128fSAndroid Build Coastguard Worker 
846*6a54128fSAndroid Build Coastguard Worker /* First entry in directory inode doesn't contain '.' */
847*6a54128fSAndroid Build Coastguard Worker #define PR_2_1ST_NOT_DOT	0x02000B
848*6a54128fSAndroid Build Coastguard Worker 
849*6a54128fSAndroid Build Coastguard Worker /* Second entry in directory inode doesn't contain '..' */
850*6a54128fSAndroid Build Coastguard Worker #define PR_2_2ND_NOT_DOT_DOT	0x02000C
851*6a54128fSAndroid Build Coastguard Worker 
852*6a54128fSAndroid Build Coastguard Worker /* i_faddr should be zero */
853*6a54128fSAndroid Build Coastguard Worker #define PR_2_FADDR_ZERO		0x02000D
854*6a54128fSAndroid Build Coastguard Worker 
855*6a54128fSAndroid Build Coastguard Worker /* i_file_acl should be zero */
856*6a54128fSAndroid Build Coastguard Worker #define PR_2_FILE_ACL_ZERO	0x02000E
857*6a54128fSAndroid Build Coastguard Worker 
858*6a54128fSAndroid Build Coastguard Worker /* i_size_high should be zero */
859*6a54128fSAndroid Build Coastguard Worker #define PR_2_DIR_SIZE_HIGH_ZERO	0x02000F
860*6a54128fSAndroid Build Coastguard Worker 
861*6a54128fSAndroid Build Coastguard Worker /* i_frag should be zero */
862*6a54128fSAndroid Build Coastguard Worker #define PR_2_FRAG_ZERO		0x020010
863*6a54128fSAndroid Build Coastguard Worker 
864*6a54128fSAndroid Build Coastguard Worker /* i_fsize should be zero */
865*6a54128fSAndroid Build Coastguard Worker #define PR_2_FSIZE_ZERO		0x020011
866*6a54128fSAndroid Build Coastguard Worker 
867*6a54128fSAndroid Build Coastguard Worker /* inode has bad mode */
868*6a54128fSAndroid Build Coastguard Worker #define PR_2_BAD_MODE		0x020012
869*6a54128fSAndroid Build Coastguard Worker 
870*6a54128fSAndroid Build Coastguard Worker /* directory corrupted */
871*6a54128fSAndroid Build Coastguard Worker #define PR_2_DIR_CORRUPTED	0x020013
872*6a54128fSAndroid Build Coastguard Worker 
873*6a54128fSAndroid Build Coastguard Worker /* filename too long */
874*6a54128fSAndroid Build Coastguard Worker #define PR_2_FILENAME_LONG	0x020014
875*6a54128fSAndroid Build Coastguard Worker 
876*6a54128fSAndroid Build Coastguard Worker /* Directory inode has a missing block (hole) */
877*6a54128fSAndroid Build Coastguard Worker #define PR_2_DIRECTORY_HOLE	0x020015
878*6a54128fSAndroid Build Coastguard Worker 
879*6a54128fSAndroid Build Coastguard Worker /* '.' is not NULL terminated */
880*6a54128fSAndroid Build Coastguard Worker #define PR_2_DOT_NULL_TERM	0x020016
881*6a54128fSAndroid Build Coastguard Worker 
882*6a54128fSAndroid Build Coastguard Worker /* '..' is not NULL terminated */
883*6a54128fSAndroid Build Coastguard Worker #define PR_2_DOT_DOT_NULL_TERM	0x020017
884*6a54128fSAndroid Build Coastguard Worker 
885*6a54128fSAndroid Build Coastguard Worker /* Illegal character device in inode */
886*6a54128fSAndroid Build Coastguard Worker #define PR_2_BAD_CHAR_DEV	0x020018
887*6a54128fSAndroid Build Coastguard Worker 
888*6a54128fSAndroid Build Coastguard Worker /* Illegal block device in inode */
889*6a54128fSAndroid Build Coastguard Worker #define PR_2_BAD_BLOCK_DEV	0x020019
890*6a54128fSAndroid Build Coastguard Worker 
891*6a54128fSAndroid Build Coastguard Worker /* Duplicate '.' entry */
892*6a54128fSAndroid Build Coastguard Worker #define PR_2_DUP_DOT		0x02001A
893*6a54128fSAndroid Build Coastguard Worker 
894*6a54128fSAndroid Build Coastguard Worker /* Duplicate '..' entry */
895*6a54128fSAndroid Build Coastguard Worker #define PR_2_DUP_DOT_DOT	0x02001B
896*6a54128fSAndroid Build Coastguard Worker 
897*6a54128fSAndroid Build Coastguard Worker /* Internal error: couldn't find dir_info */
898*6a54128fSAndroid Build Coastguard Worker #define PR_2_NO_DIRINFO		0x02001C
899*6a54128fSAndroid Build Coastguard Worker 
900*6a54128fSAndroid Build Coastguard Worker /* Final rec_len is wrong */
901*6a54128fSAndroid Build Coastguard Worker #define PR_2_FINAL_RECLEN	0x02001D
902*6a54128fSAndroid Build Coastguard Worker 
903*6a54128fSAndroid Build Coastguard Worker /* Error allocating icount structure */
904*6a54128fSAndroid Build Coastguard Worker #define PR_2_ALLOCATE_ICOUNT	0x02001E
905*6a54128fSAndroid Build Coastguard Worker 
906*6a54128fSAndroid Build Coastguard Worker /* Error iterating over directory blocks */
907*6a54128fSAndroid Build Coastguard Worker #define PR_2_DBLIST_ITERATE	0x02001F
908*6a54128fSAndroid Build Coastguard Worker 
909*6a54128fSAndroid Build Coastguard Worker /* Error reading directory block */
910*6a54128fSAndroid Build Coastguard Worker #define PR_2_READ_DIRBLOCK	0x020020
911*6a54128fSAndroid Build Coastguard Worker 
912*6a54128fSAndroid Build Coastguard Worker /* Error writing directory block */
913*6a54128fSAndroid Build Coastguard Worker #define PR_2_WRITE_DIRBLOCK	0x020021
914*6a54128fSAndroid Build Coastguard Worker 
915*6a54128fSAndroid Build Coastguard Worker /* Error allocating new directory block */
916*6a54128fSAndroid Build Coastguard Worker #define PR_2_ALLOC_DIRBOCK	0x020022
917*6a54128fSAndroid Build Coastguard Worker 
918*6a54128fSAndroid Build Coastguard Worker /* Error deallocating inode */
919*6a54128fSAndroid Build Coastguard Worker #define PR_2_DEALLOC_INODE	0x020023
920*6a54128fSAndroid Build Coastguard Worker 
921*6a54128fSAndroid Build Coastguard Worker /* Directory entry for '.' is big.  Split? */
922*6a54128fSAndroid Build Coastguard Worker #define PR_2_SPLIT_DOT		0x020024
923*6a54128fSAndroid Build Coastguard Worker 
924*6a54128fSAndroid Build Coastguard Worker /* Illegal FIFO */
925*6a54128fSAndroid Build Coastguard Worker #define PR_2_BAD_FIFO		0x020025
926*6a54128fSAndroid Build Coastguard Worker 
927*6a54128fSAndroid Build Coastguard Worker /* Illegal socket */
928*6a54128fSAndroid Build Coastguard Worker #define PR_2_BAD_SOCKET		0x020026
929*6a54128fSAndroid Build Coastguard Worker 
930*6a54128fSAndroid Build Coastguard Worker /* Directory filetype not set */
931*6a54128fSAndroid Build Coastguard Worker #define PR_2_SET_FILETYPE	0x020027
932*6a54128fSAndroid Build Coastguard Worker 
933*6a54128fSAndroid Build Coastguard Worker /* Directory filetype incorrect */
934*6a54128fSAndroid Build Coastguard Worker #define PR_2_BAD_FILETYPE	0x020028
935*6a54128fSAndroid Build Coastguard Worker 
936*6a54128fSAndroid Build Coastguard Worker /* Directory filetype set when it shouldn't be */
937*6a54128fSAndroid Build Coastguard Worker #define PR_2_CLEAR_FILETYPE	0x020029
938*6a54128fSAndroid Build Coastguard Worker 
939*6a54128fSAndroid Build Coastguard Worker /* Directory filename can't be zero-length  */
940*6a54128fSAndroid Build Coastguard Worker #define PR_2_NULL_NAME		0x020030
941*6a54128fSAndroid Build Coastguard Worker 
942*6a54128fSAndroid Build Coastguard Worker /* Invalid symlink */
943*6a54128fSAndroid Build Coastguard Worker #define PR_2_INVALID_SYMLINK	0x020031
944*6a54128fSAndroid Build Coastguard Worker 
945*6a54128fSAndroid Build Coastguard Worker /* i_file_acl (extended attribute) is bad */
946*6a54128fSAndroid Build Coastguard Worker #define PR_2_FILE_ACL_BAD	0x020032
947*6a54128fSAndroid Build Coastguard Worker 
948*6a54128fSAndroid Build Coastguard Worker /* Filesystem contains large files, but has no such flag in sb */
949*6a54128fSAndroid Build Coastguard Worker #define PR_2_FEATURE_LARGE_FILES 0x020033
950*6a54128fSAndroid Build Coastguard Worker 
951*6a54128fSAndroid Build Coastguard Worker /* Node in HTREE directory not referenced */
952*6a54128fSAndroid Build Coastguard Worker #define PR_2_HTREE_NOTREF	0x020034
953*6a54128fSAndroid Build Coastguard Worker 
954*6a54128fSAndroid Build Coastguard Worker /* Node in HTREE directory referenced twice */
955*6a54128fSAndroid Build Coastguard Worker #define PR_2_HTREE_DUPREF	0x020035
956*6a54128fSAndroid Build Coastguard Worker 
957*6a54128fSAndroid Build Coastguard Worker /* Node in HTREE directory has bad min hash */
958*6a54128fSAndroid Build Coastguard Worker #define PR_2_HTREE_MIN_HASH	0x020036
959*6a54128fSAndroid Build Coastguard Worker 
960*6a54128fSAndroid Build Coastguard Worker /* Node in HTREE directory has bad max hash */
961*6a54128fSAndroid Build Coastguard Worker #define PR_2_HTREE_MAX_HASH	0x020037
962*6a54128fSAndroid Build Coastguard Worker 
963*6a54128fSAndroid Build Coastguard Worker /* Clear invalid HTREE directory */
964*6a54128fSAndroid Build Coastguard Worker #define PR_2_HTREE_CLEAR	0x020038
965*6a54128fSAndroid Build Coastguard Worker 
966*6a54128fSAndroid Build Coastguard Worker /* Filesystem has large directories, but has no such flag in superblock */
967*6a54128fSAndroid Build Coastguard Worker #define PR_2_FEATURE_LARGE_DIRS	0x020039
968*6a54128fSAndroid Build Coastguard Worker 
969*6a54128fSAndroid Build Coastguard Worker /* Bad block in htree interior node */
970*6a54128fSAndroid Build Coastguard Worker #define PR_2_HTREE_BADBLK	0x02003A
971*6a54128fSAndroid Build Coastguard Worker 
972*6a54128fSAndroid Build Coastguard Worker /* Error adjusting EA refcount */
973*6a54128fSAndroid Build Coastguard Worker #define PR_2_ADJ_EA_REFCOUNT	0x02003B
974*6a54128fSAndroid Build Coastguard Worker 
975*6a54128fSAndroid Build Coastguard Worker /* Invalid HTREE root node */
976*6a54128fSAndroid Build Coastguard Worker #define PR_2_HTREE_BAD_ROOT	0x02003C
977*6a54128fSAndroid Build Coastguard Worker 
978*6a54128fSAndroid Build Coastguard Worker /* Invalid HTREE limit */
979*6a54128fSAndroid Build Coastguard Worker #define PR_2_HTREE_BAD_LIMIT	0x02003D
980*6a54128fSAndroid Build Coastguard Worker 
981*6a54128fSAndroid Build Coastguard Worker /* Invalid HTREE count */
982*6a54128fSAndroid Build Coastguard Worker #define PR_2_HTREE_BAD_COUNT	0x02003E
983*6a54128fSAndroid Build Coastguard Worker 
984*6a54128fSAndroid Build Coastguard Worker /* HTREE interior node has out-of-order hashes in table */
985*6a54128fSAndroid Build Coastguard Worker #define PR_2_HTREE_HASH_ORDER	0x02003F
986*6a54128fSAndroid Build Coastguard Worker 
987*6a54128fSAndroid Build Coastguard Worker /* Node in HTREE directory has bad depth */
988*6a54128fSAndroid Build Coastguard Worker #define PR_2_HTREE_BAD_DEPTH	0x020040
989*6a54128fSAndroid Build Coastguard Worker 
990*6a54128fSAndroid Build Coastguard Worker /* Duplicate directory entry found */
991*6a54128fSAndroid Build Coastguard Worker #define PR_2_DUPLICATE_DIRENT	0x020041
992*6a54128fSAndroid Build Coastguard Worker 
993*6a54128fSAndroid Build Coastguard Worker /* Non-unique filename found */
994*6a54128fSAndroid Build Coastguard Worker #define PR_2_NON_UNIQUE_FILE	0x020042
995*6a54128fSAndroid Build Coastguard Worker 
996*6a54128fSAndroid Build Coastguard Worker /* Duplicate directory entry found */
997*6a54128fSAndroid Build Coastguard Worker #define PR_2_REPORT_DUP_DIRENT	0x020043
998*6a54128fSAndroid Build Coastguard Worker 
999*6a54128fSAndroid Build Coastguard Worker /* i_blocks_hi should be zero */
1000*6a54128fSAndroid Build Coastguard Worker #define PR_2_BLOCKS_HI_ZERO	0x020044
1001*6a54128fSAndroid Build Coastguard Worker 
1002*6a54128fSAndroid Build Coastguard Worker /* Unexpected HTREE block */
1003*6a54128fSAndroid Build Coastguard Worker #define PR_2_UNEXPECTED_HTREE_BLOCK	0x020045
1004*6a54128fSAndroid Build Coastguard Worker 
1005*6a54128fSAndroid Build Coastguard Worker /* Inode found in group where _INODE_UNINIT is set */
1006*6a54128fSAndroid Build Coastguard Worker #define PR_2_INOREF_BG_INO_UNINIT	0x020046
1007*6a54128fSAndroid Build Coastguard Worker 
1008*6a54128fSAndroid Build Coastguard Worker /* Inode found in group unused inodes area */
1009*6a54128fSAndroid Build Coastguard Worker #define PR_2_INOREF_IN_UNUSED		0x020047
1010*6a54128fSAndroid Build Coastguard Worker 
1011*6a54128fSAndroid Build Coastguard Worker /* i_file_acl_hi should be zero */
1012*6a54128fSAndroid Build Coastguard Worker #define PR_2_I_FILE_ACL_HI_ZERO		0x020048
1013*6a54128fSAndroid Build Coastguard Worker 
1014*6a54128fSAndroid Build Coastguard Worker /* htree root node fails checksum */
1015*6a54128fSAndroid Build Coastguard Worker #define PR_2_HTREE_ROOT_CSUM_INVALID	0x020049
1016*6a54128fSAndroid Build Coastguard Worker 
1017*6a54128fSAndroid Build Coastguard Worker /* htree node fails checksum */
1018*6a54128fSAndroid Build Coastguard Worker #define PR_2_HTREE_NODE_CSUM_INVALID	0x02004A
1019*6a54128fSAndroid Build Coastguard Worker 
1020*6a54128fSAndroid Build Coastguard Worker /* no space in leaf for checksum */
1021*6a54128fSAndroid Build Coastguard Worker #define PR_2_LEAF_NODE_MISSING_CSUM	0x02004C
1022*6a54128fSAndroid Build Coastguard Worker 
1023*6a54128fSAndroid Build Coastguard Worker /* dir leaf node passes checks, but fails checksum */
1024*6a54128fSAndroid Build Coastguard Worker #define PR_2_LEAF_NODE_ONLY_CSUM_INVALID	0x02004D
1025*6a54128fSAndroid Build Coastguard Worker 
1026*6a54128fSAndroid Build Coastguard Worker /* bad inline directory size */
1027*6a54128fSAndroid Build Coastguard Worker #define PR_2_BAD_INLINE_DIR_SIZE	0x02004E
1028*6a54128fSAndroid Build Coastguard Worker 
1029*6a54128fSAndroid Build Coastguard Worker /* fixing inline dir size failed */
1030*6a54128fSAndroid Build Coastguard Worker #define PR_2_FIX_INLINE_DIR_FAILED	0x02004F
1031*6a54128fSAndroid Build Coastguard Worker 
1032*6a54128fSAndroid Build Coastguard Worker /* Encrypted directory entry is too short */
1033*6a54128fSAndroid Build Coastguard Worker #define PR_2_BAD_ENCRYPTED_NAME		0x020050
1034*6a54128fSAndroid Build Coastguard Worker 
1035*6a54128fSAndroid Build Coastguard Worker /* Encrypted directory contains unencrypted file */
1036*6a54128fSAndroid Build Coastguard Worker #define PR_2_UNENCRYPTED_FILE		0x020051
1037*6a54128fSAndroid Build Coastguard Worker 
1038*6a54128fSAndroid Build Coastguard Worker /* Encrypted directory contains file with different encryption policy */
1039*6a54128fSAndroid Build Coastguard Worker #define PR_2_INCONSISTENT_ENCRYPTION_POLICY	0x020052
1040*6a54128fSAndroid Build Coastguard Worker 
1041*6a54128fSAndroid Build Coastguard Worker /* Encoded directory entry has illegal characters in its name */
1042*6a54128fSAndroid Build Coastguard Worker #define PR_2_BAD_ENCODED_NAME		0x020053
1043*6a54128fSAndroid Build Coastguard Worker 
1044*6a54128fSAndroid Build Coastguard Worker /* Non-unique filename found, but can't rename */
1045*6a54128fSAndroid Build Coastguard Worker #define PR_2_NON_UNIQUE_FILE_NO_RENAME	0x020054
1046*6a54128fSAndroid Build Coastguard Worker 
1047*6a54128fSAndroid Build Coastguard Worker /*
1048*6a54128fSAndroid Build Coastguard Worker  * Pass 3 errors
1049*6a54128fSAndroid Build Coastguard Worker  */
1050*6a54128fSAndroid Build Coastguard Worker 
1051*6a54128fSAndroid Build Coastguard Worker /* Pass 3: Checking directory connectivity */
1052*6a54128fSAndroid Build Coastguard Worker #define PR_3_PASS_HEADER		0x030000
1053*6a54128fSAndroid Build Coastguard Worker 
1054*6a54128fSAndroid Build Coastguard Worker /* Root inode not allocated */
1055*6a54128fSAndroid Build Coastguard Worker #define PR_3_NO_ROOT_INODE		0x030001
1056*6a54128fSAndroid Build Coastguard Worker 
1057*6a54128fSAndroid Build Coastguard Worker /* No room in lost+found */
1058*6a54128fSAndroid Build Coastguard Worker #define PR_3_EXPAND_LF_DIR		0x030002
1059*6a54128fSAndroid Build Coastguard Worker 
1060*6a54128fSAndroid Build Coastguard Worker /* Unconnected directory inode */
1061*6a54128fSAndroid Build Coastguard Worker #define PR_3_UNCONNECTED_DIR		0x030003
1062*6a54128fSAndroid Build Coastguard Worker 
1063*6a54128fSAndroid Build Coastguard Worker /* /lost+found not found */
1064*6a54128fSAndroid Build Coastguard Worker #define PR_3_NO_LF_DIR			0x030004
1065*6a54128fSAndroid Build Coastguard Worker 
1066*6a54128fSAndroid Build Coastguard Worker /* .. entry is incorrect */
1067*6a54128fSAndroid Build Coastguard Worker #define PR_3_BAD_DOT_DOT		0x030005
1068*6a54128fSAndroid Build Coastguard Worker 
1069*6a54128fSAndroid Build Coastguard Worker /* Bad or non-existent /lost+found.  Cannot reconnect */
1070*6a54128fSAndroid Build Coastguard Worker #define PR_3_NO_LPF			0x030006
1071*6a54128fSAndroid Build Coastguard Worker 
1072*6a54128fSAndroid Build Coastguard Worker /* Could not expand /lost+found */
1073*6a54128fSAndroid Build Coastguard Worker #define PR_3_CANT_EXPAND_LPF		0x030007
1074*6a54128fSAndroid Build Coastguard Worker 
1075*6a54128fSAndroid Build Coastguard Worker /* Could not reconnect inode */
1076*6a54128fSAndroid Build Coastguard Worker #define PR_3_CANT_RECONNECT		0x030008
1077*6a54128fSAndroid Build Coastguard Worker 
1078*6a54128fSAndroid Build Coastguard Worker /* Error while trying to find /lost+found */
1079*6a54128fSAndroid Build Coastguard Worker #define PR_3_ERR_FIND_LPF		0x030009
1080*6a54128fSAndroid Build Coastguard Worker 
1081*6a54128fSAndroid Build Coastguard Worker /* Error in ext2fs_new_block while creating /lost+found */
1082*6a54128fSAndroid Build Coastguard Worker #define PR_3_ERR_LPF_NEW_BLOCK		0x03000A
1083*6a54128fSAndroid Build Coastguard Worker 
1084*6a54128fSAndroid Build Coastguard Worker /* Error in ext2fs_new_inode while creating /lost+found */
1085*6a54128fSAndroid Build Coastguard Worker #define PR_3_ERR_LPF_NEW_INODE		0x03000B
1086*6a54128fSAndroid Build Coastguard Worker 
1087*6a54128fSAndroid Build Coastguard Worker /* Error in ext2fs_new_dir_block while creating /lost+found */
1088*6a54128fSAndroid Build Coastguard Worker #define PR_3_ERR_LPF_NEW_DIR_BLOCK	0x03000C
1089*6a54128fSAndroid Build Coastguard Worker 
1090*6a54128fSAndroid Build Coastguard Worker /* Error while writing directory block for /lost+found */
1091*6a54128fSAndroid Build Coastguard Worker #define PR_3_ERR_LPF_WRITE_BLOCK	0x03000D
1092*6a54128fSAndroid Build Coastguard Worker 
1093*6a54128fSAndroid Build Coastguard Worker /* Error while adjusting inode count */
1094*6a54128fSAndroid Build Coastguard Worker #define PR_3_ADJUST_INODE		0x03000E
1095*6a54128fSAndroid Build Coastguard Worker 
1096*6a54128fSAndroid Build Coastguard Worker /* Couldn't fix parent directory -- error */
1097*6a54128fSAndroid Build Coastguard Worker #define PR_3_FIX_PARENT_ERR		0x03000F
1098*6a54128fSAndroid Build Coastguard Worker 
1099*6a54128fSAndroid Build Coastguard Worker /* Couldn't fix parent directory -- couldn't find it */
1100*6a54128fSAndroid Build Coastguard Worker #define PR_3_FIX_PARENT_NOFIND		0x030010
1101*6a54128fSAndroid Build Coastguard Worker 
1102*6a54128fSAndroid Build Coastguard Worker /* Error allocating inode bitmap */
1103*6a54128fSAndroid Build Coastguard Worker #define PR_3_ALLOCATE_IBITMAP_ERROR	0x030011
1104*6a54128fSAndroid Build Coastguard Worker 
1105*6a54128fSAndroid Build Coastguard Worker /* Error creating root directory */
1106*6a54128fSAndroid Build Coastguard Worker #define PR_3_CREATE_ROOT_ERROR		0x030012
1107*6a54128fSAndroid Build Coastguard Worker 
1108*6a54128fSAndroid Build Coastguard Worker /* Error creating lost and found directory */
1109*6a54128fSAndroid Build Coastguard Worker #define PR_3_CREATE_LPF_ERROR		0x030013
1110*6a54128fSAndroid Build Coastguard Worker 
1111*6a54128fSAndroid Build Coastguard Worker /* Root inode is not directory; aborting */
1112*6a54128fSAndroid Build Coastguard Worker #define PR_3_ROOT_NOT_DIR_ABORT		0x030014
1113*6a54128fSAndroid Build Coastguard Worker 
1114*6a54128fSAndroid Build Coastguard Worker /* Cannot proceed without a root inode. */
1115*6a54128fSAndroid Build Coastguard Worker #define PR_3_NO_ROOT_INODE_ABORT	0x030015
1116*6a54128fSAndroid Build Coastguard Worker 
1117*6a54128fSAndroid Build Coastguard Worker /* Internal error: couldn't find dir_info */
1118*6a54128fSAndroid Build Coastguard Worker #define PR_3_NO_DIRINFO			0x030016
1119*6a54128fSAndroid Build Coastguard Worker 
1120*6a54128fSAndroid Build Coastguard Worker /* Lost+found is not a directory */
1121*6a54128fSAndroid Build Coastguard Worker #define PR_3_LPF_NOTDIR			0x030017
1122*6a54128fSAndroid Build Coastguard Worker 
1123*6a54128fSAndroid Build Coastguard Worker /* Lost+found has inline data */
1124*6a54128fSAndroid Build Coastguard Worker #define PR_3_LPF_INLINE_DATA		0x030018
1125*6a54128fSAndroid Build Coastguard Worker 
1126*6a54128fSAndroid Build Coastguard Worker /* Cannot allocate lost+found */
1127*6a54128fSAndroid Build Coastguard Worker #define PR_3_LPF_NO_SPACE		0x030019
1128*6a54128fSAndroid Build Coastguard Worker 
1129*6a54128fSAndroid Build Coastguard Worker /* Insufficient space to recover lost files */
1130*6a54128fSAndroid Build Coastguard Worker #define PR_3_NO_SPACE_TO_RECOVER	0x03001A
1131*6a54128fSAndroid Build Coastguard Worker 
1132*6a54128fSAndroid Build Coastguard Worker /* Lost+found is encrypted */
1133*6a54128fSAndroid Build Coastguard Worker #define PR_3_LPF_ENCRYPTED		0x03001B
1134*6a54128fSAndroid Build Coastguard Worker 
1135*6a54128fSAndroid Build Coastguard Worker /* Recursively looped directory inode */
1136*6a54128fSAndroid Build Coastguard Worker #define PR_3_LOOPED_DIR			0x03001D
1137*6a54128fSAndroid Build Coastguard Worker 
1138*6a54128fSAndroid Build Coastguard Worker /*
1139*6a54128fSAndroid Build Coastguard Worker  * Pass 3a --- rehashing directories
1140*6a54128fSAndroid Build Coastguard Worker  */
1141*6a54128fSAndroid Build Coastguard Worker /* Pass 3a: Reindexing directories */
1142*6a54128fSAndroid Build Coastguard Worker #define PR_3A_PASS_HEADER		0x031000
1143*6a54128fSAndroid Build Coastguard Worker 
1144*6a54128fSAndroid Build Coastguard Worker /* Error iterating over directories */
1145*6a54128fSAndroid Build Coastguard Worker #define PR_3A_OPTIMIZE_ITER		0x031001
1146*6a54128fSAndroid Build Coastguard Worker 
1147*6a54128fSAndroid Build Coastguard Worker /* Error rehash directory */
1148*6a54128fSAndroid Build Coastguard Worker #define PR_3A_OPTIMIZE_DIR_ERR		0x031002
1149*6a54128fSAndroid Build Coastguard Worker 
1150*6a54128fSAndroid Build Coastguard Worker /* Rehashing dir header */
1151*6a54128fSAndroid Build Coastguard Worker #define PR_3A_OPTIMIZE_DIR_HEADER	0x031003
1152*6a54128fSAndroid Build Coastguard Worker 
1153*6a54128fSAndroid Build Coastguard Worker /* Rehashing directory %d */
1154*6a54128fSAndroid Build Coastguard Worker #define PR_3A_OPTIMIZE_DIR		0x031004
1155*6a54128fSAndroid Build Coastguard Worker 
1156*6a54128fSAndroid Build Coastguard Worker /* Rehashing dir end */
1157*6a54128fSAndroid Build Coastguard Worker #define PR_3A_OPTIMIZE_DIR_END		0x031005
1158*6a54128fSAndroid Build Coastguard Worker 
1159*6a54128fSAndroid Build Coastguard Worker /* Pass 3B is really just 1E */
1160*6a54128fSAndroid Build Coastguard Worker 
1161*6a54128fSAndroid Build Coastguard Worker /*
1162*6a54128fSAndroid Build Coastguard Worker  * Pass 4 errors
1163*6a54128fSAndroid Build Coastguard Worker  */
1164*6a54128fSAndroid Build Coastguard Worker 
1165*6a54128fSAndroid Build Coastguard Worker /* Pass 4: Checking reference counts */
1166*6a54128fSAndroid Build Coastguard Worker #define PR_4_PASS_HEADER		0x040000
1167*6a54128fSAndroid Build Coastguard Worker 
1168*6a54128fSAndroid Build Coastguard Worker /* Unattached zero-length inode */
1169*6a54128fSAndroid Build Coastguard Worker #define PR_4_ZERO_LEN_INODE		0x040001
1170*6a54128fSAndroid Build Coastguard Worker 
1171*6a54128fSAndroid Build Coastguard Worker /* Unattached inode */
1172*6a54128fSAndroid Build Coastguard Worker #define PR_4_UNATTACHED_INODE		0x040002
1173*6a54128fSAndroid Build Coastguard Worker 
1174*6a54128fSAndroid Build Coastguard Worker /* Inode ref count wrong */
1175*6a54128fSAndroid Build Coastguard Worker #define PR_4_BAD_REF_COUNT		0x040003
1176*6a54128fSAndroid Build Coastguard Worker 
1177*6a54128fSAndroid Build Coastguard Worker /* Inconsistent inode count information cached */
1178*6a54128fSAndroid Build Coastguard Worker #define PR_4_INCONSISTENT_COUNT		0x040004
1179*6a54128fSAndroid Build Coastguard Worker 
1180*6a54128fSAndroid Build Coastguard Worker /* Extended attribute inode ref count wrong */
1181*6a54128fSAndroid Build Coastguard Worker #define PR_4_EA_INODE_REF_COUNT		0x040005
1182*6a54128fSAndroid Build Coastguard Worker 
1183*6a54128fSAndroid Build Coastguard Worker /* directory exceeds max links, but no DIR_NLINK feature in superblock */
1184*6a54128fSAndroid Build Coastguard Worker #define PR_4_DIR_NLINK_FEATURE		0x040006
1185*6a54128fSAndroid Build Coastguard Worker 
1186*6a54128fSAndroid Build Coastguard Worker /* Directory ref count set to overflow but it doesn't have to be */
1187*6a54128fSAndroid Build Coastguard Worker #define PR_4_DIR_OVERFLOW_REF_COUNT	0x040007
1188*6a54128fSAndroid Build Coastguard Worker 
1189*6a54128fSAndroid Build Coastguard Worker /*
1190*6a54128fSAndroid Build Coastguard Worker  * Pass 5 errors
1191*6a54128fSAndroid Build Coastguard Worker  */
1192*6a54128fSAndroid Build Coastguard Worker 
1193*6a54128fSAndroid Build Coastguard Worker /* Pass 5: Checking group summary information */
1194*6a54128fSAndroid Build Coastguard Worker #define PR_5_PASS_HEADER		0x050000
1195*6a54128fSAndroid Build Coastguard Worker 
1196*6a54128fSAndroid Build Coastguard Worker /* Padding at end of inode bitmap is not set. */
1197*6a54128fSAndroid Build Coastguard Worker #define PR_5_INODE_BMAP_PADDING		0x050001
1198*6a54128fSAndroid Build Coastguard Worker 
1199*6a54128fSAndroid Build Coastguard Worker /* Padding at end of block bitmap is not set. */
1200*6a54128fSAndroid Build Coastguard Worker #define PR_5_BLOCK_BMAP_PADDING		0x050002
1201*6a54128fSAndroid Build Coastguard Worker 
1202*6a54128fSAndroid Build Coastguard Worker /* Block bitmap differences header */
1203*6a54128fSAndroid Build Coastguard Worker #define PR_5_BLOCK_BITMAP_HEADER	0x050003
1204*6a54128fSAndroid Build Coastguard Worker 
1205*6a54128fSAndroid Build Coastguard Worker /* Block not used, but marked in bitmap */
1206*6a54128fSAndroid Build Coastguard Worker #define PR_5_BLOCK_UNUSED		0x050004
1207*6a54128fSAndroid Build Coastguard Worker 
1208*6a54128fSAndroid Build Coastguard Worker /* Block used, but not marked used in bitmap */
1209*6a54128fSAndroid Build Coastguard Worker #define PR_5_BLOCK_USED			0x050005
1210*6a54128fSAndroid Build Coastguard Worker 
1211*6a54128fSAndroid Build Coastguard Worker /* Block bitmap differences end */
1212*6a54128fSAndroid Build Coastguard Worker #define PR_5_BLOCK_BITMAP_END		0x050006
1213*6a54128fSAndroid Build Coastguard Worker 
1214*6a54128fSAndroid Build Coastguard Worker /* Inode bitmap differences header */
1215*6a54128fSAndroid Build Coastguard Worker #define PR_5_INODE_BITMAP_HEADER	0x050007
1216*6a54128fSAndroid Build Coastguard Worker 
1217*6a54128fSAndroid Build Coastguard Worker /* Inode not used, but marked in bitmap */
1218*6a54128fSAndroid Build Coastguard Worker #define PR_5_INODE_UNUSED		0x050008
1219*6a54128fSAndroid Build Coastguard Worker 
1220*6a54128fSAndroid Build Coastguard Worker /* Inode used, but not marked used in bitmap */
1221*6a54128fSAndroid Build Coastguard Worker #define PR_5_INODE_USED			0x050009
1222*6a54128fSAndroid Build Coastguard Worker 
1223*6a54128fSAndroid Build Coastguard Worker /* Inode bitmap differences end */
1224*6a54128fSAndroid Build Coastguard Worker #define PR_5_INODE_BITMAP_END		0x05000A
1225*6a54128fSAndroid Build Coastguard Worker 
1226*6a54128fSAndroid Build Coastguard Worker /* Free inodes count for group wrong */
1227*6a54128fSAndroid Build Coastguard Worker #define PR_5_FREE_INODE_COUNT_GROUP	0x05000B
1228*6a54128fSAndroid Build Coastguard Worker 
1229*6a54128fSAndroid Build Coastguard Worker /* Directories count for group wrong */
1230*6a54128fSAndroid Build Coastguard Worker #define PR_5_FREE_DIR_COUNT_GROUP	0x05000C
1231*6a54128fSAndroid Build Coastguard Worker 
1232*6a54128fSAndroid Build Coastguard Worker /* Free inodes count wrong */
1233*6a54128fSAndroid Build Coastguard Worker #define PR_5_FREE_INODE_COUNT		0x05000D
1234*6a54128fSAndroid Build Coastguard Worker 
1235*6a54128fSAndroid Build Coastguard Worker /* Free blocks count for group wrong */
1236*6a54128fSAndroid Build Coastguard Worker #define PR_5_FREE_BLOCK_COUNT_GROUP	0x05000E
1237*6a54128fSAndroid Build Coastguard Worker 
1238*6a54128fSAndroid Build Coastguard Worker /* Free blocks count wrong */
1239*6a54128fSAndroid Build Coastguard Worker #define PR_5_FREE_BLOCK_COUNT		0x05000F
1240*6a54128fSAndroid Build Coastguard Worker 
1241*6a54128fSAndroid Build Coastguard Worker /* Programming error: bitmap endpoints don't match */
1242*6a54128fSAndroid Build Coastguard Worker #define PR_5_BMAP_ENDPOINTS		0x050010
1243*6a54128fSAndroid Build Coastguard Worker 
1244*6a54128fSAndroid Build Coastguard Worker /* Internal error: fudging end of bitmap */
1245*6a54128fSAndroid Build Coastguard Worker #define PR_5_FUDGE_BITMAP_ERROR		0x050011
1246*6a54128fSAndroid Build Coastguard Worker 
1247*6a54128fSAndroid Build Coastguard Worker /* Error copying in replacement inode bitmap */
1248*6a54128fSAndroid Build Coastguard Worker #define PR_5_COPY_IBITMAP_ERROR		0x050012
1249*6a54128fSAndroid Build Coastguard Worker 
1250*6a54128fSAndroid Build Coastguard Worker /* Error copying in replacement block bitmap */
1251*6a54128fSAndroid Build Coastguard Worker #define PR_5_COPY_BBITMAP_ERROR		0x050013
1252*6a54128fSAndroid Build Coastguard Worker 
1253*6a54128fSAndroid Build Coastguard Worker /* Block range not used, but marked in bitmap */
1254*6a54128fSAndroid Build Coastguard Worker #define PR_5_BLOCK_RANGE_UNUSED		0x050014
1255*6a54128fSAndroid Build Coastguard Worker 
1256*6a54128fSAndroid Build Coastguard Worker /* Block range used, but not marked used in bitmap */
1257*6a54128fSAndroid Build Coastguard Worker #define PR_5_BLOCK_RANGE_USED		0x050015
1258*6a54128fSAndroid Build Coastguard Worker 
1259*6a54128fSAndroid Build Coastguard Worker /* Inode range not used, but marked in bitmap */
1260*6a54128fSAndroid Build Coastguard Worker #define PR_5_INODE_RANGE_UNUSED		0x050016
1261*6a54128fSAndroid Build Coastguard Worker 
1262*6a54128fSAndroid Build Coastguard Worker /* Inode range used, but not marked used in bitmap */
1263*6a54128fSAndroid Build Coastguard Worker #define PR_5_INODE_RANGE_USED		0x050017
1264*6a54128fSAndroid Build Coastguard Worker 
1265*6a54128fSAndroid Build Coastguard Worker /* Block in use but group is marked BLOCK_UNINIT */
1266*6a54128fSAndroid Build Coastguard Worker #define PR_5_BLOCK_UNINIT		0x050018
1267*6a54128fSAndroid Build Coastguard Worker 
1268*6a54128fSAndroid Build Coastguard Worker /* Inode in use but group is marked INODE_UNINIT */
1269*6a54128fSAndroid Build Coastguard Worker #define PR_5_INODE_UNINIT		0x050019
1270*6a54128fSAndroid Build Coastguard Worker 
1271*6a54128fSAndroid Build Coastguard Worker /* Inode bitmap checksum does not match */
1272*6a54128fSAndroid Build Coastguard Worker #define PR_5_INODE_BITMAP_CSUM_INVALID	0x05001A
1273*6a54128fSAndroid Build Coastguard Worker 
1274*6a54128fSAndroid Build Coastguard Worker /* Block bitmap checksum does not match */
1275*6a54128fSAndroid Build Coastguard Worker #define PR_5_BLOCK_BITMAP_CSUM_INVALID	0x05001B
1276*6a54128fSAndroid Build Coastguard Worker 
1277*6a54128fSAndroid Build Coastguard Worker /*
1278*6a54128fSAndroid Build Coastguard Worker  * Post-Pass 5 errors
1279*6a54128fSAndroid Build Coastguard Worker  */
1280*6a54128fSAndroid Build Coastguard Worker 
1281*6a54128fSAndroid Build Coastguard Worker /* Recreate the journal if E2F_FLAG_JOURNAL_INODE flag is set */
1282*6a54128fSAndroid Build Coastguard Worker #define PR_6_RECREATE_JOURNAL		0x060001
1283*6a54128fSAndroid Build Coastguard Worker 
1284*6a54128fSAndroid Build Coastguard Worker /* Update quota information if it is inconsistent */
1285*6a54128fSAndroid Build Coastguard Worker #define PR_6_UPDATE_QUOTAS		0x060002
1286*6a54128fSAndroid Build Coastguard Worker 
1287*6a54128fSAndroid Build Coastguard Worker /* Error setting block group checksum info */
1288*6a54128fSAndroid Build Coastguard Worker #define PR_6_SET_BG_CHECKSUM		0x060003
1289*6a54128fSAndroid Build Coastguard Worker 
1290*6a54128fSAndroid Build Coastguard Worker /* Error writing file system info */
1291*6a54128fSAndroid Build Coastguard Worker #define PR_6_FLUSH_FILESYSTEM		0x060004
1292*6a54128fSAndroid Build Coastguard Worker 
1293*6a54128fSAndroid Build Coastguard Worker /* Error flushing writes to storage device */
1294*6a54128fSAndroid Build Coastguard Worker #define PR_6_IO_FLUSH			0x060005
1295*6a54128fSAndroid Build Coastguard Worker 
1296*6a54128fSAndroid Build Coastguard Worker /* Error updating quota information */
1297*6a54128fSAndroid Build Coastguard Worker #define PR_6_WRITE_QUOTAS		0x060006
1298*6a54128fSAndroid Build Coastguard Worker 
1299*6a54128fSAndroid Build Coastguard Worker 
1300*6a54128fSAndroid Build Coastguard Worker /*
1301*6a54128fSAndroid Build Coastguard Worker  * Function declarations
1302*6a54128fSAndroid Build Coastguard Worker  */
1303*6a54128fSAndroid Build Coastguard Worker int fix_problem(e2fsck_t ctx, problem_t code, struct problem_context *pctx);
1304*6a54128fSAndroid Build Coastguard Worker int end_problem_latch(e2fsck_t ctx, int mask);
1305*6a54128fSAndroid Build Coastguard Worker int set_latch_flags(int mask, int setflags, int clearflags);
1306*6a54128fSAndroid Build Coastguard Worker int get_latch_flags(int mask, int *value);
1307*6a54128fSAndroid Build Coastguard Worker void clear_problem_context(struct problem_context *pctx);
1308*6a54128fSAndroid Build Coastguard Worker 
1309*6a54128fSAndroid Build Coastguard Worker /* message.c */
1310*6a54128fSAndroid Build Coastguard Worker void print_e2fsck_message(FILE *f, e2fsck_t ctx, const char *msg,
1311*6a54128fSAndroid Build Coastguard Worker 			  struct problem_context *pctx, int first,
1312*6a54128fSAndroid Build Coastguard Worker 			  int recurse);
1313*6a54128fSAndroid Build Coastguard Worker 
1314