Imported Upstream version 2.10
[debian/cpmtools] / fsck.cpm.1.in
1 .TH FSCK.CPM 1 "@UPDATED@" "CP/M tools" "User commands"
2 .SH NAME ..\"{{{roff}}}\"{{{
3 fsck.cpm \- check a CP/M file system
4 .\"}}}
5 .SH SYNOPSIS .\"{{{
6 .ad l
7 .B fsck.cpm
8 .RB [ \-f
9 .IR format ]
10 .RB [ \-n ]
11 .I image
12 .ad b
13 .\"}}}
14 .SH DESCRIPTION .\"{{{
15 \fBfsck.cpm\fP is used to check and repair a CP/M file system.  After
16 reading the directory, it makes two passes.  The first pass checks extent
17 fields for range and format violations (bad status, extent number, last
18 record byte count, file name, extension, block number, record count,
19 size of \&.COM files, time stamp format, invalid password characters,
20 invalid time stamp mode).  The second pass checks extent connectivity
21 (multiple allocated blocks and duplicate directory entries).
22 .P
23 \fBfsck.cpm\fP can not yet repair all errors.
24 .\"}}}
25 .SH OPTIONS .\"{{{
26 .IP "\fB\-f\fP \fIformat\fP"
27 Use the given CP/M disk \fIformat\fP instead of the default format.
28 .IP "\fB\-n\fP"
29 Open the file system read-only and do not repair any errors.
30 .\"}}}
31 .SH "RETURN VALUE" .\"{{{
32 Upon successful completion, exit code 0 is returned.
33 .\"}}}
34 .SH ERRORS .\"{{{
35 Any errors are indicated by exit code 1.
36 .\"}}}
37 .SH FILES .\"{{{
38 @DATADIR@/diskdefs      CP/M disk format definitions
39 .\"}}}
40 .SH DIAGNOSTICS .\"{{{
41 .IP "\fIimage\fP: \fIused\fP/\fItotal\fP files (\fIn\fP.\fIn\fP% non-contiguos), \fIused\fP/\fItotal\fP blocks"
42 No inconsistencies could be found.  The number of used files actually
43 is the number of used extents.  Since a file may use more than
44 one extent, this may be greather than the actual number of files, but a
45 correct measure would not reflect how many files could still be created
46 at most.  A file is considered fragmented, if sequential data blocks
47 pointed to by the same extent do not have sequential block numbers.
48 The number of used blocks includes the blocks used for system tracks
49 and the directory.
50 .\"}}}
51 .SH AUTHORS .\"{{{
52 This program is copyright 1997\(en2008 Michael Haardt
53 <michael@moria.de>.  The Windows port is copyright 2000, 2001 John Elliott
54 <jce@seasip.demon.co.uk>.
55 .PP
56 This program is free software; you can redistribute it and/or modify
57 it under the terms of the GNU General Public License as published by
58 the Free Software Foundation; either version 3 of the License, or
59 (at your option) any later version.
60 .PP
61 This program is distributed in the hope that it will be useful,
62 but WITHOUT ANY WARRANTY; without even the implied warranty of
63 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
64 GNU General Public License for more details.
65 .PP
66 You should have received a copy of the GNU General Public License along
67 with this program.  If not, write to the Free Software Foundation, Inc.,
68 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
69 .\"}}}
70 .SH "SEE ALSO" .\"{{{
71 .IR fsck (8),
72 .IR mkfs.cpm (1),
73 .IR cpm (5)
74 .\"}}}