nfs-ganesha 1.4

Connectathon_config_parsing.h

Go to the documentation of this file.
00001 #ifndef _CONFIG_PARSING_H
00002 #define _CONFIG_PARSING_H
00003 
00004 enum test_number
00005 {
00006   ONE = 1,
00007   TWO,
00008   THREE,
00009   FOUR,
00010   FIVE,
00011   SIX,
00012   SEVEN,
00013   EIGHT,
00014   NINE
00015 };
00016 
00017 struct btest
00018 {
00019   enum test_number num;
00020   enum test_number num2;
00021 
00022   int levels;
00023   int files;
00024   int dirs;
00025   int count;
00026   int size;
00027   int blocksize;
00028 
00029   char *bigfile;
00030 
00031   char *fname;
00032   char *dname;
00033   char *nname;
00034   char *sname;
00035 
00036   struct btest *nextbtest;
00037 };
00038 
00039 struct testparam
00040 {
00041   char *dirtest;
00042   char *logfile;
00043   struct btest *btest;
00044 };
00045 
00046 void btest_init_defaults(struct btest *b);
00047 void testparam_init_defaults(struct testparam *t);
00048 
00049 void free_testparam(struct testparam *t);
00050 
00051 char *get_test_directory(struct testparam *t);
00052 char *get_log_file(struct testparam *t);
00053 struct btest *get_btest_args(struct testparam *param, enum test_number k);
00054 
00055 struct testparam *readin_config(char *fname);
00056 
00057 #endif