rf_script.h

来自「RAIDFrame是个非常好的磁盘阵列RAID仿真工具」· C头文件 代码 · 共 36 行

H
36
字号
/* * rf_script.h *//* * Adapted from raidSim by MCH */#ifndef _RF__RF_SCRIPT_H_#define _RF__RF_SCRIPT_H_#include "rf_types.h"typedef struct RF_Script_s RF_Script_t;struct RF_Script_s {    long  probability;             /* the probability of selecting this action */    long  action;                  /* the action type (read or write) */    long  reqSize;                 /* the request size, or mean request size */    long  alignment;               /* the request alignment */    long  local_prob;              /* the probability that each access starts in the "local" region */    long  local_size;              /* the size of the local region, expressed as a pctg of the size of the array */    long  local_offset;            /* the offset into the array of the local region, again as pctg of array size */    char  distribution;            /* the request access size distribution */    int   trace_fd;                /* trace file descriptor */};int ShutdownScript(RF_Script_t *script);RF_Script_t *ConfigureScript(char *fileName, RF_SectorCount_t diskSize,	long *numProc);RF_Script_t *SelectAction(RF_Script_t *script);int ConvertActionToAccess(RF_Raid_t *raidPtr, RF_Script_t *action,	RF_SectorCount_t diskSize, char *op, int *reqSize,	long *seekLoc, double *delay, int *async_flag);#endif /* !_RF__RF_SCRIPT_H_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?