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