-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathfileops.h
51 lines (45 loc) · 2.39 KB
/
fileops.h
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* Copyright (c) International Business Machines Corp., 2001-2004
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
* the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _FILEOPS_H_
#define _FILEOPS_H_
#include "ffsb_thread.h"
#include "ffsb.h"
#include "ffsb_op.h"
#include "ffsb_fs.h"
void ffsb_readfile(ffsb_thread_t *tconfig, ffsb_fs_t *, unsigned opnum);
void ffsb_readall(ffsb_thread_t *tconfig, ffsb_fs_t *, unsigned opnum);
void ffsb_writefile(ffsb_thread_t *tconfig, ffsb_fs_t *, unsigned opnum);
void ffsb_writefile_fsync(ffsb_thread_t *tconfig, ffsb_fs_t *, unsigned opnum);
void ffsb_writeall(ffsb_thread_t *tconfig, ffsb_fs_t *, unsigned opnum);
void ffsb_writeall_fsync(ffsb_thread_t *tconfig, ffsb_fs_t *, unsigned opnum);
void ffsb_createfile(ffsb_thread_t *tconfig, ffsb_fs_t *, unsigned opnum);
void ffsb_createfile_fsync(ffsb_thread_t *tconfig, ffsb_fs_t *, unsigned opnum);
void ffsb_deletefile(ffsb_thread_t *tconfig, ffsb_fs_t *, unsigned opnum);
void ffsb_appendfile(ffsb_thread_t *tconfig, ffsb_fs_t *, unsigned opnum);
void ffsb_appendfile_fsync(ffsb_thread_t *tconfig, ffsb_fs_t *, unsigned opnum);
void ffsb_stat(ffsb_thread_t *ft, ffsb_fs_t *fs, unsigned opnum);
void ffsb_open_close(ffsb_thread_t *ft, ffsb_fs_t *fs, unsigned opnum);
struct ffsb_op_results;
void ffsb_read_print_exl(struct ffsb_op_results *, double secs, unsigned op_num);
void ffsb_write_print_exl(struct ffsb_op_results *, double secs, unsigned op_num);
void ffsb_create_print_exl(struct ffsb_op_results *, double secs, unsigned op_num);
void ffsb_append_print_exl(struct ffsb_op_results *, double secs, unsigned op_num);
/* Set up ops for either aging or benchmarking */
void fop_bench(ffsb_fs_t *fs, unsigned opnum);
void fop_age(ffsb_fs_t *fs, unsigned opnum);
#endif /* _FILEOPS_H_ */