File: raid0.h

package info (click to toggle)
kernel-source-2.2.1 2.2.1-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 61,788 kB
  • ctags: 188,316
  • sloc: ansic: 1,114,164; asm: 49,922; makefile: 8,185; sh: 1,745; perl: 856; tcl: 409; lisp: 218; cpp: 186; awk: 133; sed: 72
file content (27 lines) | stat: -rw-r--r-- 589 bytes parent folder | download | duplicates (25)
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
#ifndef _RAID0_H
#define _RAID0_H

struct 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