File: fstests.h

package info (click to toggle)
nws 2.11-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,700 kB
  • ctags: 2,820
  • sloc: ansic: 28,849; sh: 3,289; java: 1,205; makefile: 697; perl: 12
file content (33 lines) | stat: -rw-r--r-- 749 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef INCLUDE_FSTEST_H
#define INCLUDE_FSTEST_H

#include "skills.h"

enum {NOFLUSH, MEANFLUSH, NICEFLUSH};

typedef struct testfile_t {
  char *filename;
  int fd;
  int chunks;  
  long int size;
} testfile;

int FileSystemMonitorAvailable(const char *options);
void FileSystemUseSkill( const char *options,
			 int *length,
			 SkillResult **results);

int fstest_runreadtest(char *, int, long, int, int, const char *, float *);
int fstest_runwritetest(char *, int, long, int, int, const char *, float *);

long timeread(char *, int, int, int, int, double *);
int flushbuffer(const char *, int);

void gen_filename(char *);
int createafile(char *, long);

void clockstart(struct timeval *);
void clockstop(struct timeval *, double *);


#endif