Whamcloud - gitweb
Many files:
[tools/e2fsprogs.git] / e2fsck / problem.h
1 /*
2  * problem.h --- e2fsck problem error codes
3  *
4  * Copyright 1996 by Theodore Ts'o
5  *
6  * %Begin-Header%
7  * This file may be redistributed under the terms of the GNU Public
8  * License.
9  * %End-Header%
10  */
11
12 typedef __u32 problem_t;
13
14 struct problem_context {
15         errcode_t       errcode;
16         ino_t ino, ino2, dir;
17         struct ext2_inode *inode;
18         struct ext2_dir_entry *dirent;
19         blk_t   blk, blk2;
20         e2_blkcnt_t     blkcount;
21         int             group;
22         __u64   num;
23         const char *str;
24 };
25
26 /*
27  * We define a set of "latch groups"; these are problems which are
28  * handled as a set.  The user answers once for a particular latch
29  * group.
30  */
31 #define PR_LATCH_MASK   0x0070  /* Latch mask */
32 #define PR_LATCH_BLOCK  0x0010  /* Latch for illegal blocks (pass 1) */
33 #define PR_LATCH_BBLOCK 0x0020  /* Latch for bad block inode blocks (pass 1) */
34 #define PR_LATCH_IBITMAP 0x0030 /* Latch for pass 5 inode bitmap proc. */
35 #define PR_LATCH_BBITMAP 0x0040 /* Latch for pass 5 inode bitmap proc. */
36 #define PR_LATCH_RELOC  0x0050  /* Latch for superblock relocate hint */
37 #define PR_LATCH_DBLOCK 0x0060  /* Latch for pass 1b dup block headers */
38
39 #define PR_LATCH(x)     ((((x) & PR_LATCH_MASK) >> 4) - 1)
40
41 /*
42  * Latch group descriptor flags
43  */
44 #define PRL_YES         0x0001  /* Answer yes */
45 #define PRL_NO          0x0002  /* Answer no */
46 #define PRL_LATCHED     0x0004  /* The latch group is latched */
47 #define PRL_SUPPRESS    0x0008  /* Suppress all latch group questions */
48
49 #define PRL_VARIABLE    0x000f  /* All the flags that need to be reset */
50
51 /*
52  * Pre-Pass 1 errors
53  */
54
55 /* Block bitmap not in group */
56 #define PR_0_BB_NOT_GROUP       0x000001
57
58 /* Inode bitmap not in group */
59 #define PR_0_IB_NOT_GROUP       0x000002
60
61 /* Inode table not in group */
62 #define PR_0_ITABLE_NOT_GROUP   0x000003
63
64 /* Superblock corrupt */
65 #define PR_0_SB_CORRUPT         0x000004
66
67 /* Filesystem size is wrong */
68 #define PR_0_FS_SIZE_WRONG      0x000005
69
70 /* Fragments not supported */
71 #define PR_0_NO_FRAGMENTS       0x000006
72
73 /* Bad blocks_per_group */
74 #define PR_0_BLOCKS_PER_GROUP   0x000007
75
76 /* Bad first_data_block */
77 #define PR_0_FIRST_DATA_BLOCK   0x000008
78
79 /* Adding UUID to filesystem */
80 #define PR_0_ADD_UUID           0x000009
81
82 /* Relocate hint */     
83 #define PR_0_RELOCATE_HINT      0x00000A
84
85 /* Miscellaneous superblock corruption */
86 #define PR_0_MISC_CORRUPT_SUPER 0x00000B
87         
88 /* Error determing physical device size of filesystem */
89 #define PR_0_GETSIZE_ERROR      0x00000C
90
91 /* Inode count in the superblock incorrect */
92 #define PR_0_INODE_COUNT_WRONG  0x00000D
93
94 /* The Hurd does not support the filetype feature */
95 #define PR_0_HURD_CLEAR_FILETYPE 0x00000E
96
97 /* Journal inode is invalid */
98 #define PR_0_JOURNAL_BAD_INODE  0x00000F
99
100 /* Superblock has a journal device (which we can't handle yet) */
101 #define PR_0_JOURNAL_UNSUPP_DEV 0x000010
102
103 /* Superblock has a bad journal device */
104 #define PR_0_JOURNAL_BAD_DEV    0x000011
105
106 /* Superblock has a journal UUID (which we can't handle yet) */
107 #define PR_0_JOURNAL_UNSUPP_UUID 0x000012
108
109 /* Superblock has a bad journal UUID */
110 #define PR_0_JOURNAL_BAD_UUID   0x000013
111
112 /* Journal has an unknown superblock type */
113 #define PR_0_JOURNAL_UNSUPP_SUPER 0x000014
114
115 /* Journal superblock is corrupt */
116 #define PR_0_JOURNAL_BAD_SUPER  0x000015
117
118 /* Journal superblock is corrupt */
119 #define PR_0_JOURNAL_HAS_JOURNAL 0x000016
120
121 /* Superblock has recovery flag set but no journal */
122 #define PR_0_JOURNAL_RECOVER_SET 0x000017
123
124 /* Warning message about leaving data in the journal */
125 #define PR_0_JOURNAL_RESET_JOURNAL 0x000018
126
127 /* Superblock recovery flag clear - journal needs to be reset */
128 #define PR_0_JOURNAL_RESET_PROMPT 0x000019
129
130 /* Illegal block found in orphaned inode */
131 #define PR_0_ORPHAN_ILLEGAL_BLOCK_NUM           0x000020
132
133 /* Already cleared block found in orphaned inode */
134 #define PR_0_ORPHAN_ALREADY_CLEARED_BLOCK       0x000021
135         
136 /* Illegal orphan inode in superblock */
137 #define PR_0_ORPHAN_ILLEGAL_HEAD_INODE          0x000022
138
139 /* Illegal inode in orphaned inode list */
140 #define PR_0_ORPHAN_ILLEGAL_INODE               0x000023
141
142 /* Orphan inode has a non-zero link count */
143 #define PR_0_ORPHAN_INODE_INUSE                 0x000024
144
145         
146 /*
147  * Pass 1 errors
148  */
149
150 /* Pass 1: Checking inodes, blocks, and sizes */
151 #define PR_1_PASS_HEADER                0x010000
152
153 /* Root directory is not an inode */
154 #define PR_1_ROOT_NO_DIR                0x010001
155
156 /* Root directory has dtime set */
157 #define PR_1_ROOT_DTIME                 0x010002
158
159 /* Reserved inode has bad mode */
160 #define PR_1_RESERVED_BAD_MODE          0x010003
161
162 /* Deleted inode has zero dtime */
163 #define PR_1_ZERO_DTIME                 0x010004
164
165 /* Inode in use, but dtime set */
166 #define PR_1_SET_DTIME                  0x010005
167
168 /* Zero-length directory */
169 #define PR_1_ZERO_LENGTH_DIR            0x010006
170
171 /* Block bitmap conflicts with some other fs block */
172 #define PR_1_BB_CONFLICT                0x010007
173
174 /* Inode bitmap conflicts with some other fs block */
175 #define PR_1_IB_CONFLICT                0x010008
176
177 /* Inode table conflicts with some other fs block */
178 #define PR_1_ITABLE_CONFLICT            0x010009
179
180 /* Block bitmap is on a bad block */
181 #define PR_1_BB_BAD_BLOCK               0x01000A
182
183 /* Inode bitmap is on a bad block */
184 #define PR_1_IB_BAD_BLOCK               0x01000B
185
186 /* Inode has incorrect i_size */
187 #define PR_1_BAD_I_SIZE                 0x01000C
188
189 /* Inode has incorrect i_blocks */
190 #define PR_1_BAD_I_BLOCKS               0x01000D
191
192 /* Illegal block number in inode */
193 #define PR_1_ILLEGAL_BLOCK_NUM          0x01000E
194
195 /* Block number overlaps fs metadata */
196 #define PR_1_BLOCK_OVERLAPS_METADATA    0x01000F
197
198 /* Inode has illegal blocks (latch question) */
199 #define PR_1_INODE_BLOCK_LATCH          0x010010
200
201 /* Too many bad blocks in inode */
202 #define PR_1_TOO_MANY_BAD_BLOCKS        0x010011
203         
204 /* Illegal block number in bad block inode */
205 #define PR_1_BB_ILLEGAL_BLOCK_NUM       0x010012
206
207 /* Bad block inode has illegal blocks (latch question) */
208 #define PR_1_INODE_BBLOCK_LATCH         0x010013
209
210 /* Duplicate or bad blocks in use! */
211 #define PR_1_DUP_BLOCKS_PREENSTOP       0x010014
212         
213 /* Bad block used as bad block indirect block */          
214 #define PR_1_BBINODE_BAD_METABLOCK      0x010015
215
216 /* Inconsistency can't be fixed prompt */
217 #define PR_1_BBINODE_BAD_METABLOCK_PROMPT 0x010016
218         
219 /* Bad primary block */
220 #define PR_1_BAD_PRIMARY_BLOCK          0x0100017
221                   
222 /* Bad primary block prompt */
223 #define PR_1_BAD_PRIMARY_BLOCK_PROMPT   0x0100018
224
225 /* Bad primary superblock */
226 #define PR_1_BAD_PRIMARY_SUPERBLOCK     0x0100019
227
228 /* Bad primary block group descriptors */
229 #define PR_1_BAD_PRIMARY_GROUP_DESCRIPTOR 0x010001A
230
231 /* Bad superblock in group */
232 #define PR_1_BAD_SUPERBLOCK             0x010001B
233
234 /* Bad block group descriptors in group */
235 #define PR_1_BAD_GROUP_DESCRIPTORS      0x010001C
236
237 /* Block claimed for no reason */         
238 #define PR_1_PROGERR_CLAIMED_BLOCK      0x010001D
239
240 /* Error allocating blocks for relocating metadata */
241 #define PR_1_RELOC_BLOCK_ALLOCATE       0x010001E
242                 
243 /* Error allocating block buffer during relocation process */
244 #define PR_1_RELOC_MEMORY_ALLOCATE      0x010001F
245                 
246 /* Relocating metadata group information from X to Y */ 
247 #define PR_1_RELOC_FROM_TO              0x0100020
248                 
249 /* Relocating metatdata group information to X */
250 #define PR_1_RELOC_TO                   0x0100021
251                 
252 /* Block read error during relocation process */
253 #define PR_1_RELOC_READ_ERR             0x0100022
254                 
255 /* Block write error during relocation process */
256 #define PR_1_RELOC_WRITE_ERR            0x0100023
257
258 /* Error allocating inode bitmap */
259 #define PR_1_ALLOCATE_IBITMAP_ERROR     0x0100024
260
261 /* Error allocating block bitmap */
262 #define PR_1_ALLOCATE_BBITMAP_ERROR     0x0100025
263
264 /* Error allocating icount structure */
265 #define PR_1_ALLOCATE_ICOUNT            0x0100026
266         
267 /* Error allocating dbcount */
268 #define PR_1_ALLOCATE_DBCOUNT           0x0100027
269
270 /* Error while scanning inodes */
271 #define PR_1_ISCAN_ERROR                0x0100028
272
273 /* Error while iterating over blocks */
274 #define PR_1_BLOCK_ITERATE              0x0100029
275
276 /* Error while storing inode count information */         
277 #define PR_1_ICOUNT_STORE               0x010002A
278
279 /* Error while storing directory block information */     
280 #define PR_1_ADD_DBLOCK                 0x010002B
281
282 /* Error while reading inode (for clearing) */
283 #define PR_1_READ_INODE                 0x010002C
284
285 /* Suppress messages prompt */
286 #define PR_1_SUPPRESS_MESSAGES          0x010002D
287
288 /* Filesystem contains large files, but has no such flag in sb */
289 #define PR_1_FEATURE_LARGE_FILES        0x01002E
290
291 /* Imagic flag set on an inode when filesystem doesn't support it */
292 #define PR_1_SET_IMAGIC                 0x01002F
293
294 /* Immutable flag set on a device or socket inode */
295 #define PR_1_SET_IMMUTABLE              0x010030
296
297 /* Compression flag set on a non-compressed filesystem */
298 #define PR_1_COMPR_SET                  0x010031
299
300 /* Non-zero size on on device, fifo or socket inode */
301 #define PR_1_SET_NONZSIZE               0x010032
302
303 /*
304  * Pass 1b errors
305  */
306
307 /* Pass 1B: Rescan for duplicate/bad blocks */
308 #define PR_1B_PASS_HEADER       0x011000
309
310 /* Duplicate/bad block(s) header */
311 #define PR_1B_DUP_BLOCK_HEADER  0x011001
312
313 /* Duplicate/bad block(s) in inode */
314 #define PR_1B_DUP_BLOCK         0x011002
315
316 /* Duplicate/bad block(s) end */
317 #define PR_1B_DUP_BLOCK_END     0x011003
318         
319 /* Error while scanning inodes */
320 #define PR_1B_ISCAN_ERROR       0x011004
321
322 /* Error allocating inode bitmap */
323 #define PR_1B_ALLOCATE_IBITMAP_ERROR 0x011005
324
325
326 /* Pass 1C: Scan directories for inodes with dup blocks. */
327 #define PR_1C_PASS_HEADER       0x012000
328
329
330 /* Pass 1D: Reconciling duplicate blocks */
331 #define PR_1D_PASS_HEADER       0x013000
332
333 /* File has duplicate blocks */
334 #define PR_1D_DUP_FILE          0x013001
335
336 /* List of files sharing duplicate blocks */    
337 #define PR_1D_DUP_FILE_LIST     0x013002
338
339 /* File sharing blocks with filesystem metadata  */     
340 #define PR_1D_SHARE_METADATA    0x013003
341
342 /* Report of how many duplicate/bad inodes */   
343 #define PR_1D_NUM_DUP_INODES    0x013004
344
345 /* Duplicated blocks already reassigned or cloned. */
346 #define PR_1D_DUP_BLOCKS_DEALT  0x013005
347
348 /* Clone duplicate/bad blocks? */
349 #define PR_1D_CLONE_QUESTION    0x013006
350
351 /* Delete file? */
352 #define PR_1D_DELETE_QUESTION   0x013007
353
354 /* Couldn't clone file (error) */
355 #define PR_1D_CLONE_ERROR       0x013008
356                 
357 /*
358  * Pass 2 errors
359  */
360
361 /* Pass 2: Checking directory structure */
362 #define PR_2_PASS_HEADER        0x020000
363
364 /* Bad inode number for '.' */
365 #define PR_2_BAD_INODE_DOT      0x020001
366
367 /* Directory entry has bad inode number */
368 #define PR_2_BAD_INO            0x020002
369
370 /* Directory entry has deleted or unused inode */
371 #define PR_2_UNUSED_INODE       0x020003
372
373 /* Directry entry is link to '.' */
374 #define PR_2_LINK_DOT           0x020004
375
376 /* Directory entry points to inode now located in a bad block */
377 #define PR_2_BB_INODE           0x020005
378
379 /* Directory entry contains a link to a directory */
380 #define PR_2_LINK_DIR           0x020006
381
382 /* Directory entry contains a link to the root directry */
383 #define PR_2_LINK_ROOT          0x020007
384
385 /* Directory entry has illegal characters in its name */
386 #define PR_2_BAD_NAME           0x020008
387
388 /* Missing '.' in directory inode */      
389 #define PR_2_MISSING_DOT        0x020009
390
391 /* Missing '..' in directory inode */     
392 #define PR_2_MISSING_DOT_DOT    0x02000A
393
394 /* First entry in directory inode doesn't contain '.' */
395 #define PR_2_1ST_NOT_DOT        0x02000B
396
397 /* Second entry in directory inode doesn't contain '..' */
398 #define PR_2_2ND_NOT_DOT_DOT    0x02000C
399
400 /* i_faddr should be zero */
401 #define PR_2_FADDR_ZERO         0x02000D
402
403 /* i_file_acl should be zero */
404 #define PR_2_FILE_ACL_ZERO      0x02000E
405
406 /* i_dir_acl should be zero */
407 #define PR_2_DIR_ACL_ZERO       0x02000F
408
409 /* i_frag should be zero */
410 #define PR_2_FRAG_ZERO          0x020010
411
412 /* i_fsize should be zero */
413 #define PR_2_FSIZE_ZERO         0x020011
414                   
415 /* inode has bad mode */
416 #define PR_2_BAD_MODE           0x020012
417
418 /* directory corrupted */
419 #define PR_2_DIR_CORRUPTED      0x020013
420                   
421 /* filename too long */
422 #define PR_2_FILENAME_LONG      0x020014
423                   
424 /* Directory inode has a missing block (hole) */
425 #define PR_2_DIRECTORY_HOLE     0x020015
426
427 /* '.' is not NULL terminated */
428 #define PR_2_DOT_NULL_TERM      0x020016
429
430 /* '..' is not NULL terminated */
431 #define PR_2_DOT_DOT_NULL_TERM  0x020017
432
433 /* Illegal character device in inode */
434 #define PR_2_BAD_CHAR_DEV       0x020018
435
436 /* Illegal block device in inode */
437 #define PR_2_BAD_BLOCK_DEV      0x020019
438
439 /* Duplicate '.' entry */
440 #define PR_2_DUP_DOT            0x02001A
441
442 /* Duplicate '..' entry */
443 #define PR_2_DUP_DOT_DOT        0x02001B
444         
445 /* Internal error: couldn't find dir_info */
446 #define PR_2_NO_DIRINFO         0x02001C
447
448 /* Final rec_len is wrong */
449 #define PR_2_FINAL_RECLEN       0x02001D
450
451 /* Error allocating icount structure */
452 #define PR_2_ALLOCATE_ICOUNT    0x02001E
453
454 /* Error iterating over directory blocks */
455 #define PR_2_DBLIST_ITERATE     0x02001F
456
457 /* Error reading directory block */
458 #define PR_2_READ_DIRBLOCK      0x020020
459
460 /* Error writing directory block */
461 #define PR_2_WRITE_DIRBLOCK     0x020021
462
463 /* Error allocating new directory block */
464 #define PR_2_ALLOC_DIRBOCK      0x020022
465
466 /* Error deallocating inode */
467 #define PR_2_DEALLOC_INODE      0x020023
468
469 /* Directory entry for '.' is big.  Split? */
470 #define PR_2_SPLIT_DOT          0x020024
471
472 /* Illegal FIFO */
473 #define PR_2_BAD_FIFO           0x020025
474
475 /* Illegal socket */
476 #define PR_2_BAD_SOCKET         0x020026
477
478 /* Directory filetype not set */
479 #define PR_2_SET_FILETYPE       0x020027
480
481 /* Directory filetype incorrect */
482 #define PR_2_BAD_FILETYPE       0x020028
483
484 /* Directory filetype set when it shouldn't be */
485 #define PR_2_CLEAR_FILETYPE     0x020029
486
487 /* Directory filename can't be zero-length  */
488 #define PR_2_NULL_NAME          0x020030
489
490 /*
491  * Pass 3 errors
492  */
493
494 /* Pass 3: Checking directory connectivity */
495 #define PR_3_PASS_HEADER                0x030000
496
497 /* Root inode not allocated */
498 #define PR_3_NO_ROOT_INODE              0x030001
499
500 /* No room in lost+found */
501 #define PR_3_EXPAND_LF_DIR              0x030002
502
503 /* Unconnected directory inode */
504 #define PR_3_UNCONNECTED_DIR            0x030003
505
506 /* /lost+found not found */
507 #define PR_3_NO_LF_DIR                  0x030004
508
509 /* .. entry is incorrect */
510 #define PR_3_BAD_DOT_DOT                0x030005
511
512 /* Bad or non-existent /lost+found.  Cannot reconnect */
513 #define PR_3_NO_LPF                     0x030006
514
515 /* Could not expand /lost+found */
516 #define PR_3_CANT_EXPAND_LPF            0x030007
517
518 /* Could not reconnect inode */
519 #define PR_3_CANT_RECONNECT             0x030008
520
521 /* Error while trying to find /lost+found */
522 #define PR_3_ERR_FIND_LPF               0x030009
523
524 /* Error in ext2fs_new_block while creating /lost+found */
525 #define PR_3_ERR_LPF_NEW_BLOCK          0x03000A
526
527 /* Error in ext2fs_new_inode while creating /lost+found */
528 #define PR_3_ERR_LPF_NEW_INODE          0x03000B
529
530 /* Error in ext2fs_new_dir_block while creating /lost+found */    
531 #define PR_3_ERR_LPF_NEW_DIR_BLOCK      0x03000C
532                   
533 /* Error while writing directory block for /lost+found */
534 #define PR_3_ERR_LPF_WRITE_BLOCK        0x03000D
535
536 /* Error while adjusting inode count */
537 #define PR_3_ADJUST_INODE               0x03000E
538
539 /* Couldn't fix parent directory -- error */
540 #define PR_3_FIX_PARENT_ERR             0x03000F
541
542 /* Couldn't fix parent directory -- couldn't find it */   
543 #define PR_3_FIX_PARENT_NOFIND          0x030010
544         
545 /* Error allocating inode bitmap */
546 #define PR_3_ALLOCATE_IBITMAP_ERROR     0x030011
547                   
548 /* Error creating root directory */
549 #define PR_3_CREATE_ROOT_ERROR          0x030012
550
551 /* Error creating lost and found directory */
552 #define PR_3_CREATE_LPF_ERROR           0x030013
553
554 /* Root inode is not directory; aborting */
555 #define PR_3_ROOT_NOT_DIR_ABORT         0x030014
556
557 /* Cannot proceed without a root inode. */
558 #define PR_3_NO_ROOT_INODE_ABORT        0x030015
559
560 /* Internal error: couldn't find dir_info */
561 #define PR_3_NO_DIRINFO                 0x030016
562
563 /* Lost+found is not a directory */
564 #define PR_3_LPF_NOTDIR                 0x030017
565
566 /*
567  * Pass 4 errors
568  */
569
570 /* Pass 4: Checking reference counts */
571 #define PR_4_PASS_HEADER        0x040000
572
573 /* Unattached zero-length inode */
574 #define PR_4_ZERO_LEN_INODE     0x040001
575
576 /* Unattached inode */
577 #define PR_4_UNATTACHED_INODE   0x040002
578
579 /* Inode ref count wrong */
580 #define PR_4_BAD_REF_COUNT      0x040003
581
582 /* Inconsistent inode count information cached */
583 #define PR_4_INCONSISTENT_COUNT 0x040004
584
585 /*
586  * Pass 5 errors
587  */
588
589 /* Pass 5: Checking group summary information */
590 #define PR_5_PASS_HEADER                0x050000
591         
592 /* Padding at end of inode bitmap is not set. */
593 #define PR_5_INODE_BMAP_PADDING         0x050001
594
595 /* Padding at end of block bitmap is not set. */
596 #define PR_5_BLOCK_BMAP_PADDING         0x050002
597
598 /* Block bitmap differences header */
599 #define PR_5_BLOCK_BITMAP_HEADER        0x050003
600
601 /* Block not used, but marked in bitmap */
602 #define PR_5_UNUSED_BLOCK               0x050004
603           
604 /* Block used, but not marked used in bitmap */
605 #define PR_5_BLOCK_USED                 0x050005
606
607 /* Block bitmap differences end */        
608 #define PR_5_BLOCK_BITMAP_END           0x050006
609
610 /* Inode bitmap differences header */
611 #define PR_5_INODE_BITMAP_HEADER        0x050007
612
613 /* Inode not used, but marked in bitmap */
614 #define PR_5_UNUSED_INODE               0x050008
615           
616 /* Inode used, but not marked used in bitmap */
617 #define PR_5_INODE_USED                 0x050009
618
619 /* Inode bitmap differences end */        
620 #define PR_5_INODE_BITMAP_END           0x05000A
621
622 /* Free inodes count for group wrong */
623 #define PR_5_FREE_INODE_COUNT_GROUP     0x05000B
624
625 /* Directories count for group wrong */
626 #define PR_5_FREE_DIR_COUNT_GROUP       0x05000C
627
628 /* Free inodes count wrong */
629 #define PR_5_FREE_INODE_COUNT   0x05000D
630
631 /* Free blocks count for group wrong */
632 #define PR_5_FREE_BLOCK_COUNT_GROUP     0x05000E
633
634 /* Free blocks count wrong */
635 #define PR_5_FREE_BLOCK_COUNT           0x05000F
636
637 /* Programming error: bitmap endpoints don't match */
638 #define PR_5_BMAP_ENDPOINTS             0x050010
639
640 /* Internal error: fudging end of bitmap */
641 #define PR_5_FUDGE_BITMAP_ERROR         0x050011
642
643 /* Error copying in replacement inode bitmap */
644 #define PR_5_COPY_IBITMAP_ERROR         0x050012
645
646 /* Error copying in replacement block bitmap */
647 #define PR_5_COPY_BBITMAP_ERROR         0x050013
648
649 /*
650  * Function declarations
651  */
652 int fix_problem(e2fsck_t ctx, problem_t code, struct problem_context *pctx);
653 int end_problem_latch(e2fsck_t ctx, int mask);
654 int set_latch_flags(int mask, int setflags, int clearflags);
655 int get_latch_flags(int mask, int *value);
656 void clear_problem_context(struct problem_context *ctx);
657
658 /* message.c */
659 void print_e2fsck_message(e2fsck_t ctx, const char *msg,
660                           struct problem_context *pctx, int first);
661