Skip to content

Commit

Permalink
MDRAID: Future proof the definitions, in case this gets exported from…
Browse files Browse the repository at this point in the history
… kernel properly

Signed-off-by: Tomas Mudrunka <[email protected]>
  • Loading branch information
Harvie committed Jan 2, 2025
1 parent d3202a2 commit a6f27fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions image-mdraid.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ static time_t mdraid_time = 0; //Array creation timestamp has to be identical ac
* (Currently it's missing from linux-libc-dev debian package, so cannot be simply included)
*/

#ifndef BITMAP_MAGIC
#define BITMAP_MAGIC 0x6d746962 /* This is actualy just char string saying "bitm" :-) */

/* use these for bitmap->flags and bitmap->sb->state bit-fields */
Expand Down Expand Up @@ -94,6 +95,7 @@ typedef struct bitmap_super_s {
* resync happens across. For raid1 and raid5/6 it is the size of individual
* devices. For raid10 it is the size of the array.
*/
#endif //BITMAP_MAGIC


//This structure is used to store mdraid state data in handler_priv
Expand Down

0 comments on commit a6f27fa

Please sign in to comment.