1 Star 0 Fork 3

gaoxuelong / fio

forked from HoperunHarmony / fio 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
td_error.h 807 Bytes
一键复制 编辑 原始数据 按行查看 历史
董森浩 提交于 2022-08-08 15:05 . 原版fio3.30
#ifndef FIO_TD_ERROR_H
#define FIO_TD_ERROR_H
#include "io_ddir.h"
/*
* What type of errors to continue on when continue_on_error is used,
* and what type of errors to ignore when ignore_error is used.
*/
enum error_type_bit {
ERROR_TYPE_READ_BIT = 0,
ERROR_TYPE_WRITE_BIT = 1,
ERROR_TYPE_VERIFY_BIT = 2,
ERROR_TYPE_CNT = 3,
};
enum error_type {
ERROR_TYPE_NONE = 0,
ERROR_TYPE_READ = 1 << ERROR_TYPE_READ_BIT,
ERROR_TYPE_WRITE = 1 << ERROR_TYPE_WRITE_BIT,
ERROR_TYPE_VERIFY = 1 << ERROR_TYPE_VERIFY_BIT,
ERROR_TYPE_ANY = 0xffff,
};
enum error_type_bit td_error_type(enum fio_ddir ddir, int err);
int td_non_fatal_error(struct thread_data *td, enum error_type_bit etype,
int err);
void update_error_count(struct thread_data *td, int err);
#endif
1
https://gitee.com/gaoxuelong/fio.git
git@gitee.com:gaoxuelong/fio.git
gaoxuelong
fio
fio
master

搜索帮助