Imported Upstream version 2.17
[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 ENVIRONMENT \"{{{
41 CPMTOOLSFMT     Default format
42 .\"}}}
43 .SH DIAGNOSTICS .\"{{{
44 .IP "\fIimage\fP: \fIused\fP/\fItotal\fP files (\fIn\fP.\fIn\fP% non-contiguos), \fIused\fP/\fItotal\fP blocks"
45 No inconsistencies could be found.  The number of used files actually
46 is the number of used extents.  Since a file may use more than
47 one extent, this may be greather than the actual number of files, but a
48 correct measure would not reflect how many files could still be created
49 at most.  A file is considered fragmented, if sequential data blocks
50 pointed to by the same extent do not have sequential block numbers.
51 The number of used blocks includes the blocks used for system tracks
52 and the directory.
53 .\"}}}
54 .SH AUTHORS .\"{{{
55 This program is copyright 1997\(en2012 Michael Haardt
56 <michael@moria.de>.  The Windows port is copyright 2000, 2001, 2011 John Elliott
57 <jce@seasip.demon.co.uk>.
58 .PP
59 This program is free software; you can redistribute it and/or modify
60 it under the terms of the GNU General Public License as published by
61 the Free Software Foundation; either version 3 of the License, or
62 (at your option) any later version.
63 .PP
64 This program is distributed in the hope that it will be useful,
65 but WITHOUT ANY WARRANTY; without even the implied warranty of
66 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
67 GNU General Public License for more details.
68 .PP
69 You should have received a copy of the GNU General Public License along
70 with this program.  If not, write to the Free Software Foundation, Inc.,
71 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
72 .\"}}}
73 .SH "SEE ALSO" .\"{{{
74 .IR fsck (8),
75 .IR mkfs.cpm (1),
76 .IR cpm (5)
77 .\"}}}