raid0.h 451 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _RAID0_H
  3. #define _RAID0_H
  4. struct strip_zone {
  5. sector_t zone_end; /* Start of the next zone (in sectors) */
  6. sector_t dev_start; /* Zone offset in real dev (in sectors) */
  7. int nb_dev; /* # of devices attached to the zone */
  8. };
  9. struct r0conf {
  10. struct strip_zone *strip_zone;
  11. struct md_rdev **devlist; /* lists of rdevs, pointed to
  12. * by strip_zone->dev */
  13. int nr_strip_zones;
  14. };
  15. #endif