X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=vbig.1;h=be514251908488409289c2f831330e7b6ff516b8;hb=f5cf02c54821c02adcdaa5c88a33050fab5fea01;hp=603a442fa2504a84a021a2e3dd5bef9f3ed18c8d;hpb=1f1867e7bd404685a2e651425e7cf27fd3fceb2d;p=vbig.git diff --git a/vbig.1 b/vbig.1 index 603a442..be51425 100644 --- a/vbig.1 +++ b/vbig.1 @@ -19,27 +19,34 @@ .SH NAME vbig \- create or verify a large but pseudo-random file .SH SYNOPSIS -\fBvbig \fR[\fB--seed \fRSEED\fR] \fB--create\fR|\fB--verify \fIPATH \fR[\fISIZE\fR] +\fBvbig \fR[\fB--seed \fRSEED\fR] [\fB--both\fR|\fB--create\fR|\fB--verify\fR] \fIPATH \fR[\fISIZE\fR] .br \fBvbig --help .br \fBvbig --version .SH DESCRIPTION -\fBvbig\fR either creates a file of specified size full of predictable -psuedo-random data, or verifies that it has the expected contents. +\fBvbig\fR creates a file of specified size full of predictable +psuedo-random data, and/or verifies that it has the expected contents. The intended use is to test whether storage media really do what they say on the tin. .PP \fISIZE\fR may end with \fBK\fR, \fBM\fR or \fBG\fR to select (binary) kilobytes, megabytes or gigabytes. The size is mandatory when creating a file but optional when verifying -it. +it, unless \-\-entire is specified. If \fBSIZE\fR not specified when +writing-then-verifying, it is as if \fB\-\-entire\fR was specified. .SH OPTIONS .TP .B --seed\fR, \fB-s \fISEED Specifies the random seed to use. Optional. .TP +.B --both\fR, \fB-b +Selects both mode. +\fIPATH\fR will be filled with \fISIZE\fR psuedo-random bytes and +then read to check that it contains the data just written. +This is the default. +.TP .B --create\fR, \fB-c Selects create mode. \fIPATH\fR will be filled with \fISIZE\fR psuedo-random bytes. @@ -53,6 +60,12 @@ by the equivalent \fB--create\fR call. Flush cached data after creating the file or before verifying it. On some platforms, only root can use this option. .TP +.B --entire\fR, \fB-e +When writing, keep going until the device is full (No space left +on device). When reading, keep going until the end of the file +or device. \fISIZE\fR should not be specified. The actual size +written or verified will be printed to stdout. +.TP .B --help\fR, \fB-h Displays a usage message. .TP