raid0.h

来自「基于组件方式开发操作系统的OSKIT源代码」· C头文件 代码 · 共 28 行

H
28 行
字号
#ifndef _RAID0_H#define _RAID0_Hstruct strip_zone{  int zone_offset;		/* Zone offset in md_dev */  int dev_offset;		/* Zone offset in real dev */  int size;			/* Zone size */  int nb_dev;			/* Number of devices attached to the zone */  struct real_dev *dev[MAX_REAL]; /* Devices attached to the zone */};struct raid0_hash{  struct strip_zone *zone0, *zone1;};struct raid0_data{  struct raid0_hash *hash_table; /* Dynamically allocated */  struct strip_zone *strip_zone; /* This one too */  int nr_strip_zones;  struct strip_zone *smallest;  int nr_zones;};#endif

⌨️ 快捷键说明

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