| 1 |
--- a/buffer.man |
| 2 |
+++ b/buffer.man |
| 3 |
@@ -37,7 +37,8 @@ |
| 4 |
Use the given file as the output file. The default is stdout. |
| 5 |
.TP |
| 6 |
.B \-S size |
| 7 |
-After every chunk this size has been writen print out how much been writen so far. |
| 8 |
+After every chunk of this size has been written, print out how much has |
| 9 |
+been written so far. Also prints the total throughput. |
| 10 |
By default this is not set. |
| 11 |
.TP |
| 12 |
.B \-s size |
| 13 |
@@ -67,13 +68,13 @@ |
| 14 |
.TP |
| 15 |
.B \-u microseconds |
| 16 |
After every write pause for this many microseconds. Defaults to zero. |
| 17 |
-(Suprisingly a small sleep, 100 usecs, after each write can greatly enhance |
| 18 |
+(Surprisingly a small sleep, 100 usecs, after each write can greatly enhance |
| 19 |
throughput on some drives.) |
| 20 |
.TP |
| 21 |
.B \-B |
| 22 |
-Force each block writen to be padded out to the blocksize. This is needed by some tape |
| 23 |
+Force each block written to be padded out to the blocksize. This is needed by some tape |
| 24 |
and cartridge drives. Defaults to unpadded. This only affects the |
| 25 |
-last block writen. |
| 26 |
+last block written. |
| 27 |
.TP |
| 28 |
.B \-t |
| 29 |
On exiting print to stderr a brief message showing the total number of |
| 30 |
@@ -82,7 +83,7 @@ |
| 31 |
.B \-Z |
| 32 |
If reading/writing directly to a character device (like a tape drive) |
| 33 |
then after each gigabyte perform an lseek to the start of the file. |
| 34 |
-Use this flag with extreme care. If can only be used on devices where |
| 35 |
+Use this flag with extreme care. It can only be used on devices where |
| 36 |
an lseek does not rewind the tape but does reset the kernels position |
| 37 |
flags. It is used to allow more than 2 gigabytes to be written. |
| 38 |
.PP |
| 39 |
--- a/buffer.c |
| 40 |
+++ b/buffer.c |
| 41 |
@@ -78,7 +78,7 @@ |
| 42 |
* Christoph Wicki <[email protected]> |
| 43 |
* |
| 44 |
* Revision 1.7 1992/07/23 20:42:03 lmjm |
| 45 |
- * Added 't' option to print total writen at end. |
| 46 |
+ * Added 't' option to print total written at end. |
| 47 |
* |
| 48 |
* Revision 1.6 1992/04/07 19:57:30 lmjm |
| 49 |
* Added Kevins -B and -p options. |
| 50 |
@@ -93,7 +93,7 @@ |
| 51 |
* Make sofar printing size an option. |
| 52 |
* |
| 53 |
* Revision 1.3 90/05/15 23:27:46 lmjm |
| 54 |
- * Added -S option (show how much has been writen). |
| 55 |
+ * Added -S option (show how much has been written). |
| 56 |
* Added -m option to specify how much shared memory to grab. |
| 57 |
* Now tries to fill this with blocks. |
| 58 |
* reader waits for writer to terminate and then frees the shared mem and sems. |
| 59 |
@@ -159,7 +159,7 @@ |
| 60 |
void pr_out(); |
| 61 |
void end_writer(); |
| 62 |
|
| 63 |
-/* When showing print a note every this many bytes writen */ |
| 64 |
+/* When showing print a note every this many bytes written */ |
| 65 |
int showevery = 0; |
| 66 |
#define PRINT_EVERY 10 K |
| 67 |
|
| 68 |
@@ -287,7 +287,7 @@ |
| 69 |
|
| 70 |
while( (c = getopt( argc, argv, "BS:Zdm:s:b:p:u:ti:o:z:" )) != -1 ){ |
| 71 |
switch( c ){ |
| 72 |
- case 't': /* Print to stderr the total no of bytes writen */ |
| 73 |
+ case 't': /* Print to stderr the total no of bytes written */ |
| 74 |
print_total++; |
| 75 |
break; |
| 76 |
case 'u': /* pause after write for given microseconds */ |
| 77 |
@@ -384,8 +384,8 @@ |
| 78 |
fprintf( stderr, "Usage: %s [-B] [-t] [-S size] [-m memsize] [-b blocks] [-p percent] [-s blocksize] [-u pause] [-i infile] [-o outfile] [-z size]\n", |
| 79 |
progname ); |
| 80 |
fprintf( stderr, "-B = blocked device - pad out last block\n" ); |
| 81 |
- fprintf( stderr, "-t = show total amount writen at end\n" ); |
| 82 |
- fprintf( stderr, "-S size = show amount writen every size bytes\n" ); |
| 83 |
+ fprintf( stderr, "-t = show total amount written at end\n" ); |
| 84 |
+ fprintf( stderr, "-S size = show amount written every size bytes\n" ); |
| 85 |
fprintf( stderr, "-m size = size of shared mem chunk to grab\n" ); |
| 86 |
fprintf( stderr, "-b num = number of blocks in queue\n" ); |
| 87 |
fprintf( stderr, "-p percent = don't start writing until percent blocks filled\n" ); |