chiark / gitweb /
Make --both the default
[vbig.git] / vbig.1
1 \"
2 \" This file is part of vbig.
3 \" Copyright (C) 2011 Richard Kettlewell
4 \"
5 \" This program is free software: you can redistribute it and/or modify
6 \" it under the terms of the GNU General Public License as published by
7 \" the Free Software Foundation, either version 3 of the License, or
8 \" (at your option) any later version.
9 \"
10 \" This program is distributed in the hope that it will be useful,
11 \" but WITHOUT ANY WARRANTY; without even the implied warranty of
12 \" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 \" GNU General Public License for more details.
14 \"
15 \" You should have received a copy of the GNU General Public License
16 \" along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 \"
18 .TH vbig 1
19 .SH NAME
20 vbig \- create or verify a large but pseudo-random file
21 .SH SYNOPSIS
22 \fBvbig \fR[\fB--seed \fRSEED\fR] [\fB--both\fR|\fB--create\fR|\fB--verify\fR] \fIPATH \fR[\fISIZE\fR]
23 .br
24 \fBvbig --help
25 .br
26 \fBvbig --version
27 .SH DESCRIPTION
28 \fBvbig\fR creates a file of specified size full of predictable
29 psuedo-random data, and/or verifies that it has the expected contents.
30 The intended use is to test whether storage media really do what they
31 say on the tin.
32 .PP
33 \fISIZE\fR may end with \fBK\fR, \fBM\fR or \fBG\fR to select (binary)
34 kilobytes, megabytes or gigabytes.
35 The size is mandatory when creating a file but optional when verifying
36 it, unless \-\-entire is specified.  If \fBSIZE\fR not specified when
37 writing-then-verifying, it is as if \fB\-\-entire\fR was specified.
38 .SH OPTIONS
39 .TP
40 .B --seed\fR, \fB-s \fISEED
41 Specifies the random seed to use.
42 Optional.
43 .TP
44 .B --both\fR, \fB-b
45 Selects both mode.
46 \fIPATH\fR will be filled with \fISIZE\fR psuedo-random bytes and
47 then read to check that it contains the data just written.
48 This is the default.
49 .TP
50 .B --create\fR, \fB-c
51 Selects create mode.
52 \fIPATH\fR will be filled with \fISIZE\fR psuedo-random bytes.
53 .TP
54 .B --verify\fR, \fB-v
55 Selects verify mode.
56 Checks that \fIPATH\fR has exactly the contents that would be produced
57 by the equivalent \fB--create\fR call.
58 .TP
59 .B --flush\fR, \fB-f
60 Flush cached data after creating the file or before verifying it.
61 On some platforms, only root can use this option.
62 .TP
63 .B --entire\fR, \fB-e
64 When writing, keep going until the device is full (No space left
65 on device).  When reading, keep going until the end of the file
66 or device.  \fISIZE\fR should not be specified.  The actual size
67 written or verified will be printed to stdout.
68 .TP
69 .B --help\fR, \fB-h
70 Displays a usage message.
71 .TP
72 .B --version\fR, \fB-h
73 Displays the version strings.
74 .SH AUTHOR
75 Richard Kettlewell <rjk@greenend.org.uk>