1 /*
2 * Disktest
3 * Copyright (c) International Business Machines Corp., 2001
4 *
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 *
20 *  Please send e-mail to yardleyb@us.ibm.com if you have
21 *  questions or comments.
22 *
23 *  Project Website:  TBD
24 *
25 * $Id: usage.c,v 1.5 2008/02/14 08:22:24 subrata_modak Exp $
26 *
27 */
28 
29 #include <stdio.h>
30 
usage(void)31 void usage(void)
32 {
33 	printf("\n");
34 	printf("\tdisktest [OPTIONS...] filespec\n");
35 	printf("\t-?\t\tDisplay this help text and exit.\n");
36 	printf("\t-a seed\t\tSets seed for random number generation.\n");
37 	printf("\t-A action\tSpecifies modified actions during runtime.\n");
38 	printf("\t-B lblk[:hblk]\tSet the block transfer size.\n");
39 	printf("\t-c\t\tUse a counting sequence as the data pattern.\n");
40 	printf
41 	    ("\t-C cycles\tRun until cycles disk access cycles are complete.\n");
42 	printf("\t-d\t\tDump data to standard out and exit.\n");
43 	printf("\t-D r%%:w%%\tDuty cycle used while reading and/or writing.\n");
44 	printf
45 	    ("\t-E cmp_len\tTurn on error checking comparing <cmp_len> bytes.\n");
46 	printf("\t-f byte\t\tUse a fixed data pattern up to 8 bytes.\n");
47 	printf("\t-F \t\tfilespec is a file describing a list of targets\n");
48 	printf
49 	    ("\t-h hbeat\tDisplays performance statistic every <hbeat> seconds.\n");
50 	printf("\t-I IO_type\tSet the data transfer type to IO_type.\n");
51 	printf("\t-K threads\tSet the number of test threads.\n");
52 	printf("\t-L seeks\tTotal number of seeks to occur.\n");
53 	printf("\t-m\t\tMark each LBA with header information.\n");
54 	printf("\t-M marker\tSpecify an alternate marker then start time.\n");
55 	printf("\t-n\t\tUse the LBA number as the data pattern.\n");
56 	printf("\t-N num_secs\tSet the number of available sectors.\n");
57 	printf("\t-o offset\tSet lba alignment offset.\n");
58 	printf("\t-p seek_pattern\tSet the pattern of disk seeks.\n");
59 	printf("\t-P perf_opts\tDisplays performance statistic.\n");
60 	printf("\t-q\t\tSuppress INFO level messages.\n");
61 	printf("\t-Q\t\tSuppress header information on messages.\n");
62 	printf("\t-r\t\tRead data from disk.\n");
63 	printf
64 	    ("\t-R rty[:dly]\tNumber of retries / retry delay after failure.\n");
65 	printf("\t-s sLBA[:eLBA]\tSet the start [and stop] test LBA.\n");
66 	printf("\t-S sblk[:eblk]\tSet the start [and stop] test block.\n");
67 	printf("\t-t dMin[:dMax][:ioTMO] set IO timing /timeout operations.\n");
68 	printf("\t-T runtime\tRun until <runtime> seconds have elapsed.\n");
69 	printf("\t-w\t\tWrite data to disk.\n");
70 	printf("\t-v\t\tDisplay version information and exit.\n");
71 	printf("\t-z\t\tUse randomly generated data as the data pattern.\n");
72 }
73