linux/include/uapi/linux/raid/md_u.h

/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
/*
   md_u.h : user <=> kernel API between Linux raidtools and RAID drivers
          Copyright (C) 1998 Ingo Molnar

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.
*/

#ifndef _UAPI_MD_U_H
#define _UAPI_MD_U_H

/*
 * Different major versions are not compatible.
 * Different minor versions are only downward compatible.
 * Different patchlevel versions are downward and upward compatible.
 */
#define MD_MAJOR_VERSION
#define MD_MINOR_VERSION
/*
 * MD_PATCHLEVEL_VERSION indicates kernel functionality.
 * >=1 means different superblock formats are selectable using SET_ARRAY_INFO
 *     and major_version/minor_version accordingly
 * >=2 means that Internal bitmaps are supported by setting MD_SB_BITMAP_PRESENT
 *     in the super status byte
 * >=3 means that bitmap superblock version 4 is supported, which uses
 *     little-ending representation rather than host-endian
 */
#define MD_PATCHLEVEL_VERSION

/* ioctls */

/* status */
#define RAID_VERSION
#define GET_ARRAY_INFO
#define GET_DISK_INFO
#define RAID_AUTORUN
#define GET_BITMAP_FILE

/* configuration */
#define CLEAR_ARRAY
#define ADD_NEW_DISK
#define HOT_REMOVE_DISK
#define SET_ARRAY_INFO
#define SET_DISK_INFO
#define WRITE_RAID_INFO
#define UNPROTECT_ARRAY
#define PROTECT_ARRAY
#define HOT_ADD_DISK
#define SET_DISK_FAULTY
#define HOT_GENERATE_ERROR
#define SET_BITMAP_FILE

/* usage */
#define RUN_ARRAY
/*  0x31 was START_ARRAY  */
#define STOP_ARRAY
#define STOP_ARRAY_RO
#define RESTART_ARRAY_RW
#define CLUSTERED_DISK_NACK

/* 63 partitions with the alternate major number (mdp) */
#define MdpMinorShift

mdu_version_t;

mdu_array_info_t;

/* we need a value for 'no level specified' and 0
 * means 'raid0', so we need something else.  This is
 * for internal use only
 */
#define LEVEL_NONE

mdu_disk_info_t;

mdu_start_info_t;

mdu_bitmap_file_t;

mdu_param_t;

#endif /* _UAPI_MD_U_H */