new doc makefiles
[unix-history] / usr / src / sbin / fsck / SMM.doc / 4.t
CommitLineData
a38b2411
KM
1.\" Copyright (c) 1982 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
5e9a893c 5.\" @(#)4.t 4.5 (Berkeley) %G%
a38b2411
KM
6.\"
7.ds RH Appendix A \- Fsck Error Conditions
8.NH
9Appendix A \- Fsck Error Conditions
10.NH 2
11Conventions
12.PP
13.I Fsck
14is
15a multi-pass file system check program.
16Each file system pass invokes a different Phase of the
17.I fsck
18program.
19After the initial setup,
20.I fsck
21performs successive Phases over each file system,
22checking blocks and sizes,
23path-names,
24connectivity,
25reference counts,
26and the map of free blocks,
27(possibly rebuilding it),
28and performs some cleanup.
29.LP
30Normally
31.I fsck
32is run non-interactively to
33.I preen
34the file systems after an unclean halt.
35While preen'ing a file system,
36it will only fix corruptions that are expected
37to occur from an unclean halt.
38These actions are a proper subset of the actions that
39.I fsck
40will take when it is running interactively.
41Throughout this appendix many errors have several options
42that the operator can take.
43When an inconsistency is detected,
44.I fsck
45reports the error condition to the operator.
46If a response is required,
47.I fsck
48prints a prompt message and
49waits for a response.
50When preen'ing most errors are fatal.
51For those that are expected,
52the response taken is noted.
53This appendix explains the meaning of each error condition,
54the possible responses, and the related error conditions.
55.LP
56The error conditions are organized by the
57.I Phase
58of the
59.I fsck
60program in which they can occur.
61The error conditions that may occur
62in more than one Phase
63will be discussed in initialization.
64.NH 2
65Initialization
66.PP
67Before a file system check can be performed, certain
68tables have to be set up and certain files opened.
69This section concerns itself with the opening of files and
70the initialization of tables.
71This section lists error conditions resulting from
72command line options,
73memory requests,
74opening of files,
75status of files,
76file system size checks,
77and creation of the scratch file.
6a1194d8 78All the initialization errors are fatal
a38b2411
KM
79when the file system is being preen'ed.
80.sp
81.LP
82.B "\fIC\fP option?"
83.br
84\fIC\fP is not a legal option to
85.I fsck ;
5e9a893c 86legal options are \-b, \-c, \-y, \-n, and \-p.
a38b2411
KM
87.I Fsck
88terminates on this error condition.
89See the
90.I fsck (8)
91manual entry for further detail.
92.sp
93.LP
94.B "cannot alloc NNN bytes for blockmap"
95.br
96.B "cannot alloc NNN bytes for freemap"
97.br
98.B "cannot alloc NNN bytes for statemap"
99.br
100.B "cannot alloc NNN bytes for lncntp"
101.br
102.I Fsck 's
103request for memory for its virtual
104memory tables failed.
105This should never happen.
106.I Fsck
107terminates on this error condition.
108See a guru.
109.sp
110.LP
111.B "Can't open checklist file: \fIF\fP"
112.br
113The file system checklist file
114\fIF\fP (usually
115.I /etc/fstab )
116can not be opened for reading.
117.I Fsck
118terminates on this error condition.
119Check access modes of \fIF\fP.
120.sp
121.LP
122.B "Can't stat root"
123.br
124.I Fsck 's
125request for statistics about the root directory ``/'' failed.
126This should never happen.
127.I Fsck
128terminates on this error condition.
129See a guru.
130.sp
131.LP
132.B "Can't stat \fIF\fP"
133.br
134.B "Can't make sense out of name \fIF\fP"
135.br
136.I Fsck 's
137request for statistics about the file system \fIF\fP failed.
138When running manually,
139it ignores this file system
140and continues checking the next file system given.
141Check access modes of \fIF\fP.
142.sp
143.LP
144.B "Can't open \fIF\fP"
145.br
146.I Fsck 's
147request attempt to open the file system \fIF\fP failed.
148When running manually, it ignores this file system
149and continues checking the next file system given.
150Check access modes of \fIF\fP.
151.sp
152.LP
153.B "\fIF\fP: (NO WRITE)"
154.br
155Either the \-n flag was specified or
156.I fsck 's
157attempt to open the file system \fIF\fP for writing failed.
158When running manually,
159all the diagnostics are printed out,
160but no modifications are attempted to fix them.
161.sp
162.LP
163.B "file is not a block or character device; OK"
164.br
165You have given
166.I fsck
167a regular file name by mistake.
168Check the type of the file specified.
169.LP
170Possible responses to the OK prompt are:
171.IP YES
6a1194d8 172ignore this error condition.
a38b2411
KM
173.IP NO
174ignore this file system and continues checking
175the next file system given.
176.sp
177.LP
d9f38d60
KM
178.B "UNDEFINED OPTIMIZATION IN SUPERBLOCK (SET TO DEFAULT)"
179.br
180The superblock optimization parameter is neither OPT_TIME
181nor OPT_SPACE.
182.LP
183Possible responses to the SET TO DEFAULT prompt are:
184.IP YES
185The superblock is set to request optimization to minimize
186running time of the system.
187(If optimization to minimize disk space utilization is
188desired, it can be set using \fItunefs\fP(8).)
189.IP NO
190ignore this error condition.
191.sp
192.LP
193.B "IMPOSSIBLE MINFREE=\fID\fP IN SUPERBLOCK (SET TO DEFAULT)"
194.br
195The superblock minimum space percentage is greater than 99%
196or less then 0%.
197.LP
198Possible responses to the SET TO DEFAULT prompt are:
199.IP YES
200The minfree parameter is set to 10%.
201(If some other percentage is desired,
202it can be set using \fItunefs\fP(8).)
203.IP NO
204ignore this error condition.
205.sp
206.LP
5e9a893c
KM
207.B "IMPOSSIBLE INTERLEAVE=\fID\fP IN SUPERBLOCK (SET TO DEFAULT)"
208.br
209The file system interleave is less than or equal to zero.
210.LP
211Possible responses to the SET TO DEFAULT prompt are:
212.IP YES
213The interleave parameter is set to 1.
214.IP NO
215ignore this error condition.
216.sp
217.LP
218.B "IMPOSSIBLE NPSECT=\fID\fP IN SUPERBLOCK (SET TO DEFAULT)"
219.br
220The number of physical sectors per track is less than the number
221of usable sectors per track.
222.LP
223Possible responses to the SET TO DEFAULT prompt are:
224.IP YES
225The npsect parameter is set to the number of usable sectors per track.
226.IP NO
227ignore this error condition.
228.sp
229.LP
a38b2411
KM
230One of the following messages will appear:
231.br
232.B "MAGIC NUMBER WRONG"
233.br
234.B "NCG OUT OF RANGE"
235.br
236.B "CPG OUT OF RANGE"
237.br
238.B "NCYL DOES NOT JIVE WITH NCG*CPG"
239.br
240.B "SIZE PREPOSTEROUSLY LARGE"
241.br
242.B "TRASHED VALUES IN SUPER BLOCK"
6a1194d8 243.br
a38b2411
KM
244and will be followed by the message:
245.br
246.B "\fIF\fP: BAD SUPER BLOCK: \fIB\fP"
247.br
248.B "USE -b OPTION TO FSCK TO SPECIFY LOCATION OF AN ALTERNATE"
249.br
250.B "SUPER-BLOCK TO SUPPLY NEEDED INFORMATION; SEE fsck(8)."
251.br
252The super block has been corrupted.
253An alternative super block must be selected from among those
254listed by
255.I newfs
256(8) when the file system was created.
257For file systems with a blocksize less than 32K,
258specifying \-b 32 is a good first choice.
259.sp
260.LP
261.B "INTERNAL INCONSISTENCY: \fIM\fP"
262.br
263.I Fsck 's
264has had an internal panic, whose message is specified as \fIM\fP.
265This should never happen.
266See a guru.
267.sp
268.LP
269.B "CAN NOT SEEK: BLK \fIB\fP (CONTINUE)"
270.br
271.I Fsck 's
272request for moving to a specified block number \fIB\fP in
273the file system failed.
274This should never happen.
275See a guru.
276.LP
277Possible responses to the CONTINUE prompt are:
278.IP YES
279attempt to continue to run the file system check.
280Often,
281however the problem will persist.
282This error condition will not allow a complete check of the file system.
283A second run of
284.I fsck
285should be made to re-check this file system.
286If the block was part of the virtual memory buffer
287cache,
288.I fsck
289will terminate with the message ``Fatal I/O error''.
290.IP NO
291terminate the program.
292.sp
293.LP
294.B "CAN NOT READ: BLK \fIB\fP (CONTINUE)"
295.br
296.I Fsck 's
297request for reading a specified block number \fIB\fP in
298the file system failed.
299This should never happen.
300See a guru.
301.LP
302Possible responses to the CONTINUE prompt are:
303.IP YES
304attempt to continue to run the file system check.
6a1194d8
KM
305It will retry the read and print out the message:
306.br
307.B "THE FOLLOWING SECTORS COULD NOT BE READ: \fIN\fP"
308.br
309where \fIN\fP indicates the sectors that could not be read.
310If
311.I fsck
312ever tries to write back one of the blocks on which the read failed
313it will print the message:
314.br
315.B "WRITING ZERO'ED BLOCK \fIN\fP TO DISK"
316.br
317where \fIN\fP indicates the sector that was written with zero's.
318If the disk is experiencing hardware problems, the problem will persist.
a38b2411
KM
319This error condition will not allow a complete check of the file system.
320A second run of
321.I fsck
322should be made to re-check this file system.
323If the block was part of the virtual memory buffer
324cache,
325.I fsck
326will terminate with the message ``Fatal I/O error''.
327.IP NO
328terminate the program.
329.sp
330.LP
331.B "CAN NOT WRITE: BLK \fIB\fP (CONTINUE)"
332.br
333.I Fsck 's
334request for writing a specified block number \fIB\fP
335in the file system failed.
145bc69d
KM
336The disk is write-protected;
337check the write protect lock on the drive.
338If that is not the problem, see a guru.
a38b2411
KM
339.LP
340Possible responses to the CONTINUE prompt are:
341.IP YES
342attempt to continue to run the file system check.
6a1194d8
KM
343The write operation will be retried with the failed blocks
344indicated by the message:
345.br
346.B "THE FOLLOWING SECTORS COULD NOT BE WRITTEN: \fIN\fP"
347.br
348where \fIN\fP indicates the sectors that could not be written.
349If the disk is experiencing hardware problems, the problem will persist.
a38b2411
KM
350This error condition will not allow a complete check of the file system.
351A second run of
352.I fsck
353should be made to re-check this file system.
354If the block was part of the virtual memory buffer
355cache,
356.I fsck
357will terminate with the message ``Fatal I/O error''.
358.IP NO
359terminate the program.
6a1194d8
KM
360.sp
361.LP
362.B "bad inode number DDD to ginode"
363.br
364An internal error has attempted to read non-existent inode \fIDDD\fP.
365This error causes
366.I fsck
367to exit.
368See a guru.
a38b2411
KM
369.NH 2
370Phase 1 \- Check Blocks and Sizes
371.PP
372This phase concerns itself with
373the inode list.
374This section lists error conditions resulting from
375checking inode types,
376setting up the zero-link-count table,
377examining inode block numbers for bad or duplicate blocks,
378checking inode size,
379and checking inode format.
380All errors in this phase except
381.B "INCORRECT BLOCK COUNT"
6a1194d8
KM
382and
383.B "PARTIALLY TRUNCATED INODE"
384are fatal if the file system is being preen'ed.
a38b2411
KM
385.sp
386.LP
387.B "UNKNOWN FILE TYPE I=\fII\fP (CLEAR)"
6a1194d8 388.br
a38b2411
KM
389The mode word of the inode \fII\fP indicates that the inode is not a
390special block inode, special character inode, socket inode, regular inode,
391symbolic link, or directory inode.
392.LP
393Possible responses to the CLEAR prompt are:
394.IP YES
395de-allocate inode \fII\fP by zeroing its contents.
396This will always invoke the UNALLOCATED error condition in Phase 2
397for each directory entry pointing to this inode.
398.IP NO
399ignore this error condition.
400.sp
401.LP
6a1194d8
KM
402.B "PARTIALLY TRUNCATED INODE I=\fII\fP (SALVAGE)"
403.br
404.I Fsck
405has found inode \fII\fP whose size is shorter than the number of
406blocks allocated to it.
407This condition should only occur if the system crashes while in the
408midst of truncating a file.
409When preen'ing the file system,
410.I fsck
411completes the truncation to the specified size.
412.LP
413Possible responses to SALVAGE are:
414.IP YES
415complete the truncation to the size specified in the inode.
416.IP NO
417ignore this error condition.
418.sp
419.LP
a38b2411
KM
420.B "LINK COUNT TABLE OVERFLOW (CONTINUE)"
421.br
422An internal table for
423.I fsck
424containing allocated inodes with a link count of
6a1194d8
KM
425zero cannot allocate more memory.
426Increase the virtual memory for
427.I fsck .
a38b2411 428.LP
6a1194d8 429Possible responses to the CONTINUE prompt are:
a38b2411
KM
430.IP YES
431continue with the program.
432This error condition will not allow a complete check of the file system.
433A second run of
434.I fsck
435should be made to re-check this file system.
436If another allocated inode with a zero link count is found,
437this error condition is repeated.
438.IP NO
439terminate the program.
440.sp
441.LP
442.B "\fIB\fP BAD I=\fII\fP"
443.br
444Inode \fII\fP contains block number \fIB\fP with a number
445lower than the number of the first data block in the file system or
446greater than the number of the last block
447in the file system.
448This error condition may invoke the
449.B "EXCESSIVE BAD BLKS"
145bc69d 450error condition in Phase 1 (see next paragraph) if
a38b2411
KM
451inode \fII\fP has too many block numbers outside the file system range.
452This error condition will always invoke the
453.B "BAD/DUP"
454error condition in Phase 2 and Phase 4.
455.sp
456.LP
457.B "EXCESSIVE BAD BLKS I=\fII\fP (CONTINUE)"
458.br
459There is more than a tolerable number (usually 10) of blocks with a number
460lower than the number of the first data block in the file system or greater than
461the number of last block in the file system associated with inode \fII\fP.
462.LP
463Possible responses to the CONTINUE prompt are:
464.IP YES
465ignore the rest of the blocks in this inode
466and continue checking with the next inode in the file system.
467This error condition will not allow a complete check of the file system.
468A second run of
469.I fsck
470should be made to re-check this file system.
471.IP NO
472terminate the program.
473.sp
474.LP
6a1194d8
KM
475.B "BAD STATE DDD TO BLKERR"
476.br
477An internal error has scrambled
478.I fsck 's
479state map to have the impossible value \fIDDD\fP.
480.I Fsck
481exits immediately.
482See a guru.
483.sp
484.LP
a38b2411
KM
485.B "\fIB\fP DUP I=\fII\fP"
486.br
6a1194d8 487Inode \fII\fP contains block number \fIB\fP that is already claimed by
a38b2411
KM
488another inode.
489This error condition may invoke the
490.B "EXCESSIVE DUP BLKS"
491error condition in Phase 1 if
492inode \fII\fP has too many block numbers claimed by other inodes.
493This error condition will always invoke Phase 1b and the
494.B "BAD/DUP"
495error condition in Phase 2 and Phase 4.
496.sp
497.LP
498.B "EXCESSIVE DUP BLKS I=\fII\fP (CONTINUE)"
499.br
500There is more than a tolerable number (usually 10) of blocks claimed by other
501inodes.
502.LP
503Possible responses to the CONTINUE prompt are:
504.IP YES
505ignore the rest of the blocks in this inode
506and continue checking with the next inode in the file system.
507This error condition will not allow a complete check of the file system.
508A second run of
509.I fsck
510should be made to re-check this file system.
511.IP NO
512terminate the program.
513.sp
514.LP
515.B "DUP TABLE OVERFLOW (CONTINUE)"
516.br
517An internal table in
518.I fsck
6a1194d8
KM
519containing duplicate block numbers cannot allocate any more space.
520Increase the amount of virtual memory available to
521.I fsck .
a38b2411
KM
522.LP
523Possible responses to the CONTINUE prompt are:
524.IP YES
525continue with the program.
526This error condition will not allow a complete check of the file system.
527A second run of
528.I fsck
529should be made to re-check this file system.
530If another duplicate block is found, this error condition will repeat.
531.IP NO
532terminate the program.
533.sp
534.LP
535.B "PARTIALLY ALLOCATED INODE I=\fII\fP (CLEAR)"
536.br
537Inode \fII\fP is neither allocated nor unallocated.
538.LP
539Possible responses to the CLEAR prompt are:
540.IP YES
541de-allocate inode \fII\fP by zeroing its contents.
542.IP NO
543ignore this error condition.
544.sp
545.LP
546.B "INCORRECT BLOCK COUNT I=\fII\fP (\fIX\fP should be \fIY\fP) (CORRECT)"
547.br
548The block count for inode \fII\fP is \fIX\fP blocks,
549but should be \fIY\fP blocks.
550When preen'ing the count is corrected.
551.LP
552Possible responses to the CORRECT prompt are:
553.IP YES
554replace the block count of inode \fII\fP with \fIY\fP.
555.IP NO
556ignore this error condition.
557.NH 2
558Phase 1B: Rescan for More Dups
559.PP
560When a duplicate block is found in the file system, the file system is
6a1194d8 561rescanned to find the inode that previously claimed that block.
a38b2411
KM
562This section lists the error condition when the duplicate block is found.
563.sp
564.LP
565.B "\fIB\fP DUP I=\fII\fP"
566.br
567Inode \fII\fP contains block number \fIB\fP that
568is already claimed by another inode.
569This error condition will always invoke the
570.B "BAD/DUP"
571error condition in Phase 2.
572You can determine which inodes have overlapping blocks by examining
573this error condition and the DUP error condition in Phase 1.
574.NH 2
575Phase 2 \- Check Pathnames
576.PP
577This phase concerns itself with removing directory entries
578pointing to
579error conditioned inodes
580from Phase 1 and Phase 1b.
581This section lists error conditions resulting from
582root inode mode and status,
583directory inode pointers in range,
145bc69d
KM
584and directory entries pointing to bad inodes,
585and directory integrity checks.
586All errors in this phase are fatal if the file system is being preen'ed,
587except for directories not being a multiple of the blocks size
588and extraneous hard links.
a38b2411
KM
589.sp
590.LP
6a1194d8 591.B "ROOT INODE UNALLOCATED (ALLOCATE)"
a38b2411
KM
592.br
593The root inode (usually inode number 2) has no allocate mode bits.
594This should never happen.
a38b2411 595.LP
6a1194d8
KM
596Possible responses to the ALLOCATE prompt are:
597.IP YES
598allocate inode 2 as the root inode.
599The files and directories usually found in the root will be recovered
600in Phase 3 and put into
601.I lost+found .
602If the attempt to allocate the root fails,
603.I fsck
604will exit with the message:
a38b2411 605.br
6a1194d8
KM
606.B "CANNOT ALLOCATE ROOT INODE" .
607.IP NO
608.I fsck
609will exit.
a38b2411
KM
610.sp
611.LP
6a1194d8 612.B "ROOT INODE NOT DIRECTORY (REALLOCATE)"
a38b2411
KM
613.br
614The root inode (usually inode number 2)
615is not directory inode type.
616.LP
6a1194d8
KM
617Possible responses to the REALLOCATE prompt are:
618.IP YES
619clear the existing contents of the root inode
620and reallocate it.
621The files and directories usually found in the root will be recovered
622in Phase 3 and put into
623.I lost+found .
624If the attempt to allocate the root fails,
625.I fsck
626will exit with the message:
627.br
628.B "CANNOT ALLOCATE ROOT INODE" .
629.IP NO
630.I fsck
631will then prompt with
632.B "FIX"
633.LP
a38b2411
KM
634Possible responses to the FIX prompt are:
635.IP YES
636replace the root inode's type to be a directory.
637If the root inode's data blocks are not directory blocks,
6a1194d8 638many error conditions will be produced.
a38b2411
KM
639.IP NO
640terminate the program.
641.sp
642.LP
6a1194d8 643.B "DUPS/BAD IN ROOT INODE (REALLOCATE)"
a38b2411
KM
644.br
645Phase 1 or Phase 1b have found duplicate blocks
646or bad blocks in the root inode (usually inode number 2) for the file system.
647.LP
6a1194d8
KM
648Possible responses to the REALLOCATE prompt are:
649.IP YES
650clear the existing contents of the root inode
651and reallocate it.
652The files and directories usually found in the root will be recovered
653in Phase 3 and put into
654.I lost+found .
655If the attempt to allocate the root fails,
656.I fsck
657will exit with the message:
658.br
659.B "CANNOT ALLOCATE ROOT INODE" .
660.IP NO
661.I fsck
662will then prompt with
663.B "CONTINUE" .
664.LP
a38b2411
KM
665Possible responses to the CONTINUE prompt are:
666.IP YES
667ignore the
668.B "DUPS/BAD"
669error condition in the root inode and
670attempt to continue to run the file system check.
671If the root inode is not correct,
6a1194d8 672then this may result in many other error conditions.
a38b2411
KM
673.IP NO
674terminate the program.
675.sp
676.LP
6a1194d8
KM
677.B "NAME TOO LONG \fIF\fP"
678.br
679An excessively long path name has been found.
680This usually indicates loops in the file system name space.
681This can occur if the super user has made circular links to directories.
682The offending links must be removed (by a guru).
683.sp
684.LP
a38b2411
KM
685.B "I OUT OF RANGE I=\fII\fP NAME=\fIF\fP (REMOVE)"
686.br
6a1194d8 687A directory entry \fIF\fP has an inode number \fII\fP that is greater than
a38b2411
KM
688the end of the inode list.
689.LP
690Possible responses to the REMOVE prompt are:
691.IP YES
692the directory entry \fIF\fP is removed.
693.IP NO
694ignore this error condition.
695.sp
696.LP
145bc69d 697.B "UNALLOCATED I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP \fItype\fP=\fIF\fP (REMOVE)"
a38b2411 698.br
145bc69d 699A directory or file entry \fIF\fP points to an unallocated inode \fII\fP.
a38b2411 700The owner \fIO\fP, mode \fIM\fP, size \fIS\fP, modify time \fIT\fP,
145bc69d 701and name \fIF\fP are printed.
a38b2411
KM
702.LP
703Possible responses to the REMOVE prompt are:
704.IP YES
705the directory entry \fIF\fP is removed.
706.IP NO
707ignore this error condition.
708.sp
709.LP
145bc69d 710.B "DUP/BAD I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP \fItype\fP=\fIF\fP (REMOVE)"
a38b2411
KM
711.br
712Phase 1 or Phase 1b have found duplicate blocks or bad blocks
145bc69d
KM
713associated with directory or file entry \fIF\fP, inode \fII\fP.
714The owner \fIO\fP, mode \fIM\fP, size \fIS\fP, modify time \fIT\fP,
715and directory name \fIF\fP are printed.
a38b2411
KM
716.LP
717Possible responses to the REMOVE prompt are:
718.IP YES
719the directory entry \fIF\fP is removed.
720.IP NO
721ignore this error condition.
722.sp
723.LP
724.B "ZERO LENGTH DIRECTORY I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP (REMOVE)"
725.br
726A directory entry \fIF\fP has a size \fIS\fP that is zero.
727The owner \fIO\fP, mode \fIM\fP, size \fIS\fP, modify time \fIT\fP,
728and directory name \fIF\fP are printed.
729.LP
730Possible responses to the REMOVE prompt are:
731.IP YES
732the directory entry \fIF\fP is removed;
733this will always invoke the BAD/DUP error condition in Phase 4.
734.IP NO
735ignore this error condition.
736.sp
737.LP
738.B "DIRECTORY TOO SHORT I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP (FIX)"
739.br
740A directory \fIF\fP has been found whose size \fIS\fP
741is less than the minimum size directory.
742The owner \fIO\fP, mode \fIM\fP, size \fIS\fP, modify time \fIT\fP,
743and directory name \fIF\fP are printed.
744.LP
745Possible responses to the FIX prompt are:
746.IP YES
747increase the size of the directory to the minimum directory size.
748.IP NO
749ignore this directory.
750.sp
751.LP
6a1194d8
KM
752.B "DIRECTORY \fIF\fP LENGTH \fIS\fP NOT MULTIPLE OF \fIB\fP (ADJUST)
753.br
754A directory \fIF\fP has been found with size \fIS\fP that is not
755a multiple of the directory blocksize \fIB\fP.
756.LP
757Possible responses to the ADJUST prompt are:
758.IP YES
759the length is rounded up to the appropriate block size.
760This error can occur on 4.2BSD file systems.
761Thus when preen'ing the file system only a warning is printed
762and the directory is adjusted.
763.IP NO
764ignore the error condition.
765.sp
766.LP
a38b2411
KM
767.B "DIRECTORY CORRUPTED I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP (SALVAGE)"
768.br
769A directory with an inconsistent internal state has been found.
770.LP
771Possible responses to the FIX prompt are:
772.IP YES
6a1194d8
KM
773throw away all entries up to the next directory boundary (usually 512-byte)
774boundary.
775This drastic action can throw away up to 42 entries,
a38b2411
KM
776and should be taken only after other recovery efforts have failed.
777.IP NO
6a1194d8 778skip up to the next directory boundary and resume reading,
a38b2411
KM
779but do not modify the directory.
780.sp
781.LP
782.B "BAD INODE NUMBER FOR `.' I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP (FIX)"
783.br
784A directory \fII\fP has been found whose inode number for `.' does
785does not equal \fII\fP.
786.LP
787Possible responses to the FIX prompt are:
788.IP YES
789change the inode number for `.' to be equal to \fII\fP.
790.IP NO
791leave the inode number for `.' unchanged.
792.sp
793.LP
794.B "MISSING `.' I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP (FIX)"
795.br
796A directory \fII\fP has been found whose first entry is unallocated.
797.LP
798Possible responses to the FIX prompt are:
799.IP YES
6a1194d8 800build an entry for `.' with inode number equal to \fII\fP.
a38b2411
KM
801.IP NO
802leave the directory unchanged.
803.sp
804.LP
805.B "MISSING `.' I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP"
806.br
807.B "CANNOT FIX, FIRST ENTRY IN DIRECTORY CONTAINS \fIF\fP"
808.br
809A directory \fII\fP has been found whose first entry is \fIF\fP.
810.I Fsck
811cannot resolve this problem.
812The file system should be mounted and the offending entry \fIF\fP
813moved elsewhere.
814The file system should then be unmounted and
815.I fsck
816should be run again.
817.sp
818.LP
819.B "MISSING `.' I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP"
820.br
821.B "CANNOT FIX, INSUFFICIENT SPACE TO ADD `.'"
822.br
823A directory \fII\fP has been found whose first entry is not `.'.
824.I Fsck
825cannot resolve this problem as it should never happen.
826See a guru.
827.sp
828.LP
829.B "EXTRA `.' ENTRY I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP (FIX)"
830.br
831A directory \fII\fP has been found that has more than one entry for `.'.
832.LP
833Possible responses to the FIX prompt are:
834.IP YES
835remove the extra entry for `.'.
836.IP NO
837leave the directory unchanged.
838.sp
839.LP
840.B "BAD INODE NUMBER FOR `..' I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP (FIX)"
841.br
842A directory \fII\fP has been found whose inode number for `..' does
843does not equal the parent of \fII\fP.
844.LP
845Possible responses to the FIX prompt are:
846.IP YES
145bc69d
KM
847change the inode number for `..' to be equal to the parent of \fII\fP
848(``\fB..\fP'' in the root inode points to itself).
a38b2411
KM
849.IP NO
850leave the inode number for `..' unchanged.
851.sp
852.LP
853.B "MISSING `..' I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP (FIX)"
854.br
855A directory \fII\fP has been found whose second entry is unallocated.
856.LP
857Possible responses to the FIX prompt are:
858.IP YES
145bc69d
KM
859build an entry for `..' with inode number equal to the parent of \fII\fP
860(``\fB..\fP'' in the root inode points to itself).
a38b2411
KM
861.IP NO
862leave the directory unchanged.
863.sp
864.LP
865.B "MISSING `..' I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP"
866.br
867.B "CANNOT FIX, SECOND ENTRY IN DIRECTORY CONTAINS \fIF\fP"
868.br
869A directory \fII\fP has been found whose second entry is \fIF\fP.
870.I Fsck
871cannot resolve this problem.
872The file system should be mounted and the offending entry \fIF\fP
873moved elsewhere.
874The file system should then be unmounted and
875.I fsck
876should be run again.
877.sp
878.LP
879.B "MISSING `..' I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP"
880.br
881.B "CANNOT FIX, INSUFFICIENT SPACE TO ADD `..'"
882.br
883A directory \fII\fP has been found whose second entry is not `..'.
884.I Fsck
6a1194d8
KM
885cannot resolve this problem.
886The file system should be mounted and the second entry in the directory
887moved elsewhere.
888The file system should then be unmounted and
889.I fsck
890should be run again.
a38b2411
KM
891.sp
892.LP
893.B "EXTRA `..' ENTRY I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP (FIX)"
894.br
895A directory \fII\fP has been found that has more than one entry for `..'.
896.LP
897Possible responses to the FIX prompt are:
898.IP YES
899remove the extra entry for `..'.
900.IP NO
901leave the directory unchanged.
6a1194d8
KM
902.sp
903.LP
904.B "\fIN\fP IS AN EXTRANEOUS HARD LINK TO A DIRECTORY \fID\fP (REMOVE)
905.br
906.I Fsck
907has found a hard link, \fIN\fP, to a directory, \fID\fP.
908When preen'ing the extraneous links are ignored.
909.LP
910Possible responses to the REMOVE prompt are:
911.IP YES
912delete the extraneous entry, \fIN\fP.
913.IP NO
914ignore the error condition.
915.sp
916.LP
917.B "BAD INODE \fIS\fP TO DESCEND"
918.br
919An internal error has caused an impossible state \fIS\fP to be passed to the
920routine that descends the file system directory structure.
921.I Fsck
922exits.
923See a guru.
924.sp
925.LP
926.B "BAD RETURN STATE \fIS\fP FROM DESCEND"
927.br
928An internal error has caused an impossible state \fIS\fP to be returned
929from the routine that descends the file system directory structure.
930.I Fsck
931exits.
932See a guru.
933.sp
934.LP
935.B "BAD STATE \fIS\fP FOR ROOT INODE"
936.br
937An internal error has caused an impossible state \fIS\fP to be assigned
938to the root inode.
939.I Fsck
940exits.
941See a guru.
a38b2411
KM
942.NH 2
943Phase 3 \- Check Connectivity
944.PP
945This phase concerns itself with the directory connectivity seen in
946Phase 2.
947This section lists error conditions resulting from
948unreferenced directories,
949and missing or full
950.I lost+found
951directories.
952.sp
953.LP
954.B "UNREF DIR I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP (RECONNECT)"
955.br
956The directory inode \fII\fP was not connected to a directory entry
957when the file system was traversed.
6a1194d8
KM
958The owner \fIO\fP, mode \fIM\fP, size \fIS\fP, and
959modify time \fIT\fP of directory inode \fII\fP are printed.
a38b2411
KM
960When preen'ing, the directory is reconnected if its size is non-zero,
961otherwise it is cleared.
962.LP
963Possible responses to the RECONNECT prompt are:
964.IP YES
965reconnect directory inode \fII\fP to the file system in the
966directory for lost files (usually \fIlost+found\fP).
967This may invoke the
968.I lost+found
969error condition in Phase 3
970if there are problems connecting directory inode \fII\fP to \fIlost+found\fP.
971This may also invoke the CONNECTED error condition in Phase 3 if the link
972was successful.
973.IP NO
974ignore this error condition.
975This will always invoke the UNREF error condition in Phase 4.
976.sp
977.LP
6a1194d8 978.B "NO lost+found DIRECTORY (CREATE)"
a38b2411
KM
979.br
980There is no
981.I lost+found
982directory in the root directory of the file system;
6a1194d8 983When preen'ing
a38b2411 984.I fsck
6a1194d8
KM
985tries to create a \fIlost+found\fP directory.
986.LP
987Possible responses to the CREATE prompt are:
988.IP YES
989create a \fIlost+found\fP directory in the root of the file system.
990This may raise the message:
991.br
992.B "NO SPACE LEFT IN / (EXPAND)"
993.br
994See below for the possible responses.
995Inability to create a \fIlost+found\fP directory generates the message:
996.br
997.B "SORRY. CANNOT CREATE lost+found DIRECTORY"
998.br
999and aborts the attempt to linkup the lost inode.
1000This will always invoke the UNREF error condition in Phase 4.
1001.IP NO
1002abort the attempt to linkup the lost inode.
a38b2411 1003This will always invoke the UNREF error condition in Phase 4.
a38b2411
KM
1004.sp
1005.LP
6a1194d8
KM
1006.B "lost+found IS NOT A DIRECTORY (REALLOCATE)"
1007.br
1008The entry for
1009.I lost+found
1010is not a directory.
1011.LP
1012Possible responses to the REALLOCATE prompt are:
1013.IP YES
1014allocate a directory inode, and change \fIlost+found\fP to reference it.
1015The previous inode reference by the \fIlost+found\fP name is not cleared.
1016Thus it will either be reclaimed as an UNREF'ed inode or have its
1017link count ADJUST'ed later in this Phase.
1018Inability to create a \fIlost+found\fP directory generates the message:
1019.br
1020.B "SORRY. CANNOT CREATE lost+found DIRECTORY"
1021.br
1022and aborts the attempt to linkup the lost inode.
1023This will always invoke the UNREF error condition in Phase 4.
1024.IP NO
1025abort the attempt to linkup the lost inode.
1026This will always invoke the UNREF error condition in Phase 4.
1027.sp
1028.LP
1029.B "NO SPACE LEFT IN /lost+found (EXPAND)"
a38b2411
KM
1030.br
1031There is no space to add another entry to the
1032.I lost+found
1033directory in the root directory
6a1194d8
KM
1034of the file system.
1035When preen'ing the
1036.I lost+found
1037directory is expanded.
1038.LP
1039Possible responses to the EXPAND prompt are:
1040.IP YES
1041the
1042.I lost+found
1043directory is expanded to make room for the new entry.
1044If the attempted expansion fails
a38b2411 1045.I fsck
6a1194d8
KM
1046prints the message:
1047.br
1048.B "SORRY. NO SPACE IN lost+found DIRECTORY"
1049.br
1050and aborts the attempt to linkup the lost inode.
a38b2411
KM
1051This will always invoke the UNREF error condition in Phase 4.
1052Clean out unnecessary entries in
6a1194d8 1053.I lost+found .
a38b2411 1054This error is fatal if the file system is being preen'ed.
6a1194d8
KM
1055.IP NO
1056abort the attempt to linkup the lost inode.
1057This will always invoke the UNREF error condition in Phase 4.
a38b2411
KM
1058.sp
1059.LP
1060.B "DIR I=\fII1\fP CONNECTED. PARENT WAS I=\fII2\fP"
1061.br
1062This is an advisory message indicating a directory inode \fII1\fP was
1063successfully connected to the
1064.I lost+found
1065directory.
1066The parent inode \fII2\fP of the directory inode \fII1\fP is
1067replaced by the inode number of the
1068.I lost+found
1069directory.
6a1194d8
KM
1070.sp
1071.LP
1072.B "DIRECTORY \fIF\fP LENGTH \fIS\fP NOT MULTIPLE OF \fIB\fP (ADJUST)
1073.br
1074A directory \fIF\fP has been found with size \fIS\fP that is not
145bc69d
KM
1075a multiple of the directory blocksize \fIB\fP
1076(this can reoccur in Phase 3 if it is not adjusted in Phase 2).
6a1194d8
KM
1077.LP
1078Possible responses to the ADJUST prompt are:
1079.IP YES
1080the length is rounded up to the appropriate block size.
1081This error can occur on 4.2BSD file systems.
1082Thus when preen'ing the file system only a warning is printed
1083and the directory is adjusted.
1084.IP NO
1085ignore the error condition.
1086.sp
1087.LP
1088.B "BAD INODE \fIS\fP TO DESCEND"
1089.br
1090An internal error has caused an impossible state \fIS\fP to be passed to the
1091routine that descends the file system directory structure.
1092.I Fsck
1093exits.
1094See a guru.
a38b2411
KM
1095.NH 2
1096Phase 4 \- Check Reference Counts
1097.PP
1098This phase concerns itself with the link count information
1099seen in Phase 2 and Phase 3.
1100This section lists error conditions resulting from
1101unreferenced files,
1102missing or full
1103.I lost+found
1104directory,
1105incorrect link counts for files, directories, symbolic links, or special files,
1106unreferenced files, symbolic links, and directories,
6a1194d8 1107and bad or duplicate blocks in files, symbolic links, and directories.
a38b2411 1108All errors in this phase are correctable if the file system is being preen'ed
6a1194d8 1109except running out of space in the \fIlost+found\fP directory.
a38b2411
KM
1110.sp
1111.LP
1112.B "UNREF FILE I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP (RECONNECT)"
1113.br
1114Inode \fII\fP was not connected to a directory entry
1115when the file system was traversed.
1116The owner \fIO\fP, mode \fIM\fP, size \fIS\fP, and
1117modify time \fIT\fP of inode \fII\fP are printed.
1118When preen'ing the file is cleared if either its size or its
1119link count is zero,
1120otherwise it is reconnected.
1121.LP
1122Possible responses to the RECONNECT prompt are:
1123.IP YES
1124reconnect inode \fII\fP to the file system in the directory for
1125lost files (usually \fIlost+found\fP).
1126This may invoke the
1127.I lost+found
1128error condition in Phase 4
1129if there are problems connecting inode \fII\fP to
6a1194d8 1130.I lost+found .
a38b2411
KM
1131.IP NO
1132ignore this error condition.
1133This will always invoke the CLEAR error condition in Phase 4.
1134.sp
1135.LP
1136.B "(CLEAR)"
1137.br
1138The inode mentioned in the immediately previous error condition can not be
1139reconnected.
1140This cannot occur if the file system is being preen'ed,
1141since lack of space to reconnect files is a fatal error.
1142.LP
1143Possible responses to the CLEAR prompt are:
1144.IP YES
1145de-allocate the inode mentioned in the immediately previous error condition by zeroing its contents.
1146.IP NO
1147ignore this error condition.
1148.sp
1149.LP
6a1194d8 1150.B "NO lost+found DIRECTORY (CREATE)"
a38b2411
KM
1151.br
1152There is no
1153.I lost+found
1154directory in the root directory of the file system;
6a1194d8 1155When preen'ing
a38b2411 1156.I fsck
6a1194d8
KM
1157tries to create a \fIlost+found\fP directory.
1158.LP
1159Possible responses to the CREATE prompt are:
1160.IP YES
1161create a \fIlost+found\fP directory in the root of the file system.
1162This may raise the message:
1163.br
1164.B "NO SPACE LEFT IN / (EXPAND)"
1165.br
1166See below for the possible responses.
1167Inability to create a \fIlost+found\fP directory generates the message:
1168.br
1169.B "SORRY. CANNOT CREATE lost+found DIRECTORY"
1170.br
1171and aborts the attempt to linkup the lost inode.
1172This will always invoke the UNREF error condition in Phase 4.
1173.IP NO
1174abort the attempt to linkup the lost inode.
1175This will always invoke the UNREF error condition in Phase 4.
a38b2411
KM
1176.sp
1177.LP
6a1194d8
KM
1178.B "lost+found IS NOT A DIRECTORY (REALLOCATE)"
1179.br
1180The entry for
1181.I lost+found
1182is not a directory.
1183.LP
1184Possible responses to the REALLOCATE prompt are:
1185.IP YES
1186allocate a directory inode, and change \fIlost+found\fP to reference it.
1187The previous inode reference by the \fIlost+found\fP name is not cleared.
1188Thus it will either be reclaimed as an UNREF'ed inode or have its
1189link count ADJUST'ed later in this Phase.
1190Inability to create a \fIlost+found\fP directory generates the message:
1191.br
1192.B "SORRY. CANNOT CREATE lost+found DIRECTORY"
1193.br
1194and aborts the attempt to linkup the lost inode.
1195This will always invoke the UNREF error condition in Phase 4.
1196.IP NO
1197abort the attempt to linkup the lost inode.
1198This will always invoke the UNREF error condition in Phase 4.
1199.sp
1200.LP
1201.B "NO SPACE LEFT IN /lost+found (EXPAND)"
a38b2411
KM
1202.br
1203There is no space to add another entry to the
1204.I lost+found
6a1194d8
KM
1205directory in the root directory
1206of the file system.
1207When preen'ing the
1208.I lost+found
1209directory is expanded.
1210.LP
1211Possible responses to the EXPAND prompt are:
1212.IP YES
1213the
1214.I lost+found
1215directory is expanded to make room for the new entry.
1216If the attempted expansion fails
a38b2411 1217.I fsck
6a1194d8
KM
1218prints the message:
1219.br
1220.B "SORRY. NO SPACE IN lost+found DIRECTORY"
1221.br
1222and aborts the attempt to linkup the lost inode.
1223This will always invoke the UNREF error condition in Phase 4.
1224Clean out unnecessary entries in
1225.I lost+found .
a38b2411 1226This error is fatal if the file system is being preen'ed.
6a1194d8
KM
1227.IP NO
1228abort the attempt to linkup the lost inode.
1229This will always invoke the UNREF error condition in Phase 4.
a38b2411
KM
1230.sp
1231.LP
145bc69d 1232.B "LINK COUNT \fItype\fP I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP COUNT=\fIX\fP SHOULD BE \fIY\fP (ADJUST)"
a38b2411 1233.br
145bc69d 1234The link count for inode \fII\fP,
a38b2411
KM
1235is \fIX\fP but should be \fIY\fP.
1236The owner \fIO\fP, mode \fIM\fP, size \fIS\fP, and modify time \fIT\fP
1237are printed.
6a1194d8
KM
1238When preen'ing the link count is adjusted unless the number of references
1239is increasing, a condition that should never occur unless precipitated
1240by a hardware failure.
1241When the number of references is increasing under preen mode,
1242.I fsck
1243exits with the message:
1244.br
1245.B "LINK COUNT INCREASING"
a38b2411
KM
1246.LP
1247Possible responses to the ADJUST prompt are:
1248.IP YES
1249replace the link count of file inode \fII\fP with \fIY\fP.
1250.IP NO
1251ignore this error condition.
1252.sp
1253.LP
145bc69d 1254.B "UNREF \fItype\fP I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP (CLEAR)"
a38b2411 1255.br
145bc69d 1256Inode \fII\fP, was not connected to a directory entry when the
a38b2411
KM
1257file system was traversed.
1258The owner \fIO\fP, mode \fIM\fP, size \fIS\fP,
1259and modify time \fIT\fP of inode \fII\fP
1260are printed.
1261When preen'ing,
1262this is a file that was not connected because its size or link count was zero,
1263hence it is cleared.
1264.LP
1265Possible responses to the CLEAR prompt are:
1266.IP YES
1267de-allocate inode \fII\fP by zeroing its contents.
1268.IP NO
1269ignore this error condition.
1270.sp
1271.LP
145bc69d 1272.B "BAD/DUP \fItype\fP I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP (CLEAR)"
a38b2411
KM
1273.br
1274Phase 1 or Phase 1b have found duplicate blocks
1275or bad blocks associated with
145bc69d 1276inode \fII\fP.
a38b2411
KM
1277The owner \fIO\fP, mode \fIM\fP, size \fIS\fP,
1278and modify time \fIT\fP of inode \fII\fP
1279are printed.
1280This error cannot arise when the file system is being preen'ed,
1281as it would have caused a fatal error earlier.
1282.LP
1283Possible responses to the CLEAR prompt are:
1284.IP YES
1285de-allocate inode \fII\fP by zeroing its contents.
1286.IP NO
1287ignore this error condition.
a38b2411
KM
1288.NH 2
1289Phase 5 - Check Cyl groups
1290.PP
6a1194d8 1291This phase concerns itself with the free-block and used-inode maps.
a38b2411
KM
1292This section lists error conditions resulting from
1293allocated blocks in the free-block maps,
1294free blocks missing from free-block maps,
1295and the total free-block count incorrect.
6a1194d8
KM
1296It also lists error conditions resulting from
1297free inodes in the used-inode maps,
1298allocated inodes missing from used-inode maps,
1299and the total used-inode count incorrect.
a38b2411
KM
1300.sp
1301.LP
1302.B "CG \fIC\fP: BAD MAGIC NUMBER"
1303.br
1304The magic number of cylinder group \fIC\fP is wrong.
1305This usually indicates that the cylinder group maps have been destroyed.
1306When running manually the cylinder group is marked as needing
1307to be reconstructed.
1308This error is fatal if the file system is being preen'ed.
1309.sp
1310.LP
6a1194d8 1311.B "BLK(S) MISSING IN BIT MAPS (SALVAGE)"
a38b2411 1312.br
6a1194d8
KM
1313A cylinder group block map is missing some free blocks.
1314During preen'ing the maps are reconstructed.
a38b2411 1315.LP
6a1194d8 1316Possible responses to the SALVAGE prompt are:
a38b2411 1317.IP YES
6a1194d8 1318reconstruct the free block map.
a38b2411 1319.IP NO
6a1194d8 1320ignore this error condition.
a38b2411
KM
1321.sp
1322.LP
6a1194d8 1323.B "SUMMARY INFORMATION BAD (SALVAGE)"
a38b2411 1324.br
6a1194d8 1325The summary information was found to be incorrect.
a38b2411
KM
1326When preen'ing,
1327the summary information is recomputed.
a38b2411
KM
1328.LP
1329Possible responses to the SALVAGE prompt are:
1330.IP YES
6a1194d8 1331reconstruct the summary information.
a38b2411
KM
1332.IP NO
1333ignore this error condition.
1334.sp
1335.LP
6a1194d8 1336.B "FREE BLK COUNT(S) WRONG IN SUPERBLOCK (SALVAGE)"
a38b2411 1337.br
6a1194d8 1338The superblock free block information was found to be incorrect.
a38b2411 1339When preen'ing,
6a1194d8 1340the superblock free block information is recomputed.
a38b2411 1341.LP
6a1194d8 1342Possible responses to the SALVAGE prompt are:
a38b2411 1343.IP YES
6a1194d8 1344reconstruct the superblock free block information.
a38b2411
KM
1345.IP NO
1346ignore this error condition.
1347.NH 2
a38b2411
KM
1348Cleanup
1349.PP
1350Once a file system has been checked, a few cleanup functions are performed.
1351This section lists advisory messages about
1352the file system
1353and modify status of the file system.
1354.sp
1355.LP
1356.B "\fIV\fP files, \fIW\fP used, \fIX\fP free (\fIY\fP frags, \fIZ\fP blocks)"
1357.br
1358This is an advisory message indicating that
1359the file system checked contained
1360\fIV\fP files using
1361\fIW\fP fragment sized blocks leaving
1362\fIX\fP fragment sized blocks free in the file system.
1363The numbers in parenthesis breaks the free count down into
1364\fIY\fP free fragments and
1365\fIZ\fP free full sized blocks.
1366.sp
1367.LP
1368.B "***** REBOOT UNIX *****"
1369.br
1370This is an advisory message indicating that
1371the root file system has been modified by
1372.I fsck.
1373If UNIX is not rebooted immediately,
1374the work done by
1375.I fsck
1376may be undone by the in-core copies of tables
1377UNIX keeps.
1378When preen'ing,
1379.I fsck
1380will exit with a code of 4.
145bc69d
KM
1381The standard auto-reboot script distributed with 4.3BSD
1382interprets an exit code of 4 by issuing a reboot system call.
a38b2411
KM
1383.sp
1384.LP
1385.B "***** FILE SYSTEM WAS MODIFIED *****"
1386.br
1387This is an advisory message indicating that
1388the current file system was modified by
1389.I fsck.
1390If this file system is mounted or is the current root file system,
1391.I fsck
1392should be halted and UNIX rebooted.
1393If UNIX is not rebooted immediately,
1394the work done by
1395.I fsck
1396may be undone by the in-core copies of tables
1397UNIX keeps.