diff options
author | Neil Brown <neilb@suse.de> | 2005-10-11 04:44:44 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2005-10-11 04:44:44 +0000 |
commit | dcec9ee54779586f287f5db98ab1be3f0f02dd3f (patch) | |
tree | 053ff57337183f7b975433ad45f74a8cb245cdf9 /bitmap.h | |
parent | 5a6d7f456ad67779321d8aa81203f70bcc56a0a5 (diff) | |
download | mdadm-dcec9ee54779586f287f5db98ab1be3f0f02dd3f.tar.gz mdadm-dcec9ee54779586f287f5db98ab1be3f0f02dd3f.tar.xz mdadm-dcec9ee54779586f287f5db98ab1be3f0f02dd3f.zip |
Create version-4 bitmaps if kernel supports it.
Version-3 bitmaps are host-endian. Version-4 are little-endian
and so more portable.
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'bitmap.h')
-rw-r--r-- | bitmap.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -6,7 +6,13 @@ #ifndef BITMAP_H #define BITMAP_H 1 -#define BITMAP_MAJOR 3 +#define BITMAP_MAJOR_LO 3 +/* version 4 insists the bitmap is in little-endian order + * with version 3, it is host-endian which is non-portable + */ +#define BITMAP_MAJOR_HI 4 +#define BITMAP_MAJOR_HOSTENDIAN 3 + #define BITMAP_MINOR 39 /* |