root/include/linux/raid0.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 
   2 #ifndef _RAID0_H
   3 #define _RAID0_H
   4 
   5 struct strip_zone
   6 {
   7   int zone_offset;              /* Zone offset in md_dev */
   8   int dev_offset;               /* Zone offset in real dev */
   9   int size;                     /* Zone size */
  10   int nb_dev;                   /* Number of devices attached to the zone */
  11   struct real_dev *dev[MAX_REAL]; /* Devices attached to the zone */
  12 };
  13 
  14 struct raid0_hash
  15 {
  16   struct strip_zone *zone0, *zone1;
  17 };
  18 
  19 struct raid0_data
  20 {
  21   struct raid0_hash *hash_table; /* Dynamically allocated */
  22   struct strip_zone *strip_zone; /* This one too */
  23   int nr_strip_zones;
  24   struct strip_zone *smallest;
  25   int nr_zones;
  26 };
  27 
  28 #endif
  29 
  30 #ifndef _RAID0_H
  31 #define _RAID0_H
  32 
  33 struct strip_zone
  34 {
  35   int zone_offset;              /* Zone offset in md_dev */
  36   int dev_offset;               /* Zone offset in real dev */
  37   int size;                     /* Zone size */
  38   int nb_dev;                   /* Number of devices attached to the zone */
  39   struct real_dev *dev[MAX_REAL]; /* Devices attached to the zone */
  40 };
  41 
  42 struct raid0_hash
  43 {
  44   struct strip_zone *zone0, *zone1;
  45 };
  46 
  47 struct raid0_data
  48 {
  49   struct raid0_hash *hash_table; /* Dynamically allocated */
  50   struct strip_zone *strip_zone; /* This one too */
  51   int nr_strip_zones;
  52   struct strip_zone *smallest;
  53   int nr_zones;
  54 };
  55 
  56 #endif

/* [previous][next][first][last][top][bottom][index][help] */