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: parse.h,v 1.5 2008/02/14 08:22:23 subrata_modak Exp $ 26 * 27 */ 28 29 #ifndef _PARSE_H 30 #define _PARSE_H 31 32 #include <sys/stat.h> 33 34 #ifdef WINDOWS 35 #include "getopt.h" 36 #define IS_FILE(x) (_S_IFREG & x) 37 #define IS_BLK(x) (_S_IFCHR & x) 38 39 #define L_ASSUME "(-L %I64d) " 40 #define N_ASSUME "(-N %I64d) " 41 #define MAXTRSIZ "Max transfer size is %lu and Volume size is %I64d\n" 42 #define VSIZETS "Volume size, %I64d, is to small for transfer size, %lu.\n" 43 #define TSEEK "Total seeks of %I64d, is invalid.\n" 44 #define SBRSB "Stop Block of range, %I64d, must be greater the Start Block, %I64d.\n" 45 #define SLBARSLBA "Stop LBA of range, %I64d, must be greater the Start LBA, %I64d.\n" 46 #define SLBAGTLBA "Stop LBA, %I64d, greater then total volume LBAs, %I64d.\n" 47 #define STLBAGTLBA "Start LBA, %I64d, greater then total volume LBAs, %I64d.\n" 48 #define SBGTTLBA "Stop Block, %I64d, greater then total volume LBAs, %I64d.\n" 49 #define STBGTTLBA "Start Block, %I64d, greater then total volume LBAs, %I64d.\n" 50 #define LBAOFFGSLBA "LBA offset of %lu, is greater then stop LBA of %I64d\n" 51 #define LBAOTSGSLBA "LBA offset of %lu and transfer size of %lu, is greater then stop LBA of %I64d\n" 52 #else 53 #define IS_FILE(x) S_ISREG(x) 54 #define IS_BLK(x) S_ISBLK(x) 55 56 #define L_ASSUME "(-L %lld) " 57 #define N_ASSUME "(-N %lld) " 58 #define MAXTRSIZ "Max transfer size is %lu and Volume size is %lld\n" 59 #define VSIZETS "Volume size, %lld, is to small for transfer size, %lu.\n" 60 #define TSEEK "Total seeks of %lld, is invalid.\n" 61 #define SBRSB "Stop Block of range, %lld, must be greater the Start Block, %lld.\n" 62 #define SLBARSLBA "Stop LBA of range, %lld, must be greater the Start LBA, %lld.\n" 63 #define SLBAGTLBA "Stop LBA, %lld, greater then total volume LBAs, %lld.\n" 64 #define STLBAGTLBA "Start LBA, %lld, greater then total volume LBAs, %lld.\n" 65 #define SBGTTLBA "Stop Block, %lld, greater then total volume LBAs, %lld.\n" 66 #define STBGTTLBA "Start Block, %lld, greater then total volume LBAs, %lld.\n" 67 #define LBAOFFGSLBA "LBA offset of %lu, is greater then stop LBA of %lld\n" 68 #define LBAOTSGSLBA "LBA offset of %lu and transfer size of %lu, is greater then stop LBA of %lld\n" 69 #endif 70 71 #include "main.h" 72 #include "defs.h" 73 74 int fill_cld_args(int, char **, child_args_t *); 75 int make_assumptions(child_args_t *); 76 int check_conclusions(child_args_t *); 77 78 #endif 79