]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - md_u.h
sysfs: Use the presence of /sys/block/<dev>/md as indicator of valid device
[thirdparty/mdadm.git] / md_u.h
diff --git a/md_u.h b/md_u.h
index 76068d647ffe7ca1a6ba6873bd344e6159d060bd..d59aa2d011e5e5cb354f8ab2cf98d6b3c6277de0 100644 (file)
--- a/md_u.h
+++ b/md_u.h
 #define RAID_VERSION           _IOR (MD_MAJOR, 0x10, mdu_version_t)
 #define GET_ARRAY_INFO         _IOR (MD_MAJOR, 0x11, mdu_array_info_t)
 #define GET_DISK_INFO          _IOR (MD_MAJOR, 0x12, mdu_disk_info_t)
-#define PRINT_RAID_DEBUG       _IO (MD_MAJOR, 0x13)
 #define RAID_AUTORUN           _IO (MD_MAJOR, 0x14)
 #define GET_BITMAP_FILE                _IOR (MD_MAJOR, 0x15, mdu_bitmap_file_t)
 
 /* configuration */
-#define CLEAR_ARRAY            _IO (MD_MAJOR, 0x20)
 #define ADD_NEW_DISK           _IOW (MD_MAJOR, 0x21, mdu_disk_info_t)
 #define HOT_REMOVE_DISK                _IO (MD_MAJOR, 0x22)
 #define SET_ARRAY_INFO         _IOW (MD_MAJOR, 0x23, mdu_array_info_t)
-#define SET_DISK_INFO          _IO (MD_MAJOR, 0x24)
-#define WRITE_RAID_INFO                _IO (MD_MAJOR, 0x25)
-#define UNPROTECT_ARRAY                _IO (MD_MAJOR, 0x26)
-#define PROTECT_ARRAY          _IO (MD_MAJOR, 0x27)
 #define HOT_ADD_DISK           _IO (MD_MAJOR, 0x28)
 #define SET_DISK_FAULTY                _IO (MD_MAJOR, 0x29)
 #define SET_BITMAP_FILE                _IOW (MD_MAJOR, 0x2b, int)
@@ -59,7 +53,7 @@ typedef struct mdu_array_info_s {
        int major_version;
        int minor_version;
        int patch_version;
-       int ctime;
+       unsigned int ctime;
        int level;
        int size;
        int nr_disks;
@@ -70,7 +64,7 @@ typedef struct mdu_array_info_s {
        /*
         * Generic state information
         */
-       int utime;              /*  0 Superblock update time                  */
+       unsigned int utime;     /*  0 Superblock update time                  */
        int state;              /*  1 State bits (clean, ...)                 */
        int active_disks;       /*  2 Number of currently active disks        */
        int working_disks;      /*  3 Number of working disks                 */