]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - md_u.h
Detail: clean up handing of the 'info' we load from superblock.
[thirdparty/mdadm.git] / md_u.h
diff --git a/md_u.h b/md_u.h
index 22a1543808c9ad86379d83ee07bab365faab6be2..a874cec1c2c2d12f68099ee9e72814e848554a05 100644 (file)
--- a/md_u.h
+++ b/md_u.h
@@ -1,15 +1,15 @@
 /*
    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.
-   
+
    You should have received a copy of the GNU General Public License
    (for example /usr/src/linux/COPYING); if not, write to the Free
-   Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  
+   Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
 #ifndef _MD_U_H
@@ -23,6 +23,7 @@
 #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)
@@ -35,6 +36,7 @@
 #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)
 
 /* usage */
 #define RUN_ARRAY              _IOW (MD_MAJOR, 0x30, mdu_param_t)
@@ -105,6 +107,11 @@ typedef struct mdu_start_info_s {
 
 } mdu_start_info_t;
 
+typedef struct mdu_bitmap_file_s
+{
+       char pathname[4096];
+} mdu_bitmap_file_t;
+
 typedef struct mdu_param_s
 {
        int                     personality;    /* 1,2,3,4 */
@@ -112,5 +119,5 @@ typedef struct mdu_param_s
        int                     max_fault;      /* unused for now */
 } mdu_param_t;
 
-#endif 
+#endif