summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2005-10-11 04:44:44 +0000
committerNeil Brown <neilb@suse.de>2005-10-11 04:44:44 +0000
commitdcec9ee54779586f287f5db98ab1be3f0f02dd3f (patch)
tree053ff57337183f7b975433ad45f74a8cb245cdf9 /mdadm.h
parent5a6d7f456ad67779321d8aa81203f70bcc56a0a5 (diff)
downloadmdadm-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 'mdadm.h')
-rw-r--r--mdadm.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdadm.h b/mdadm.h
index 3557c02..85a853b 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -190,7 +190,7 @@ extern struct superswitch {
int (*load_super)(struct supertype *st, int fd, void **sbp, char *devname);
struct supertype * (*match_metadata_desc)(char *arg);
__u64 (*avail_size)(struct supertype *st, __u64 size);
- int (*add_internal_bitmap)(struct supertype *st, void *sbv, int chunk, int delay, int write_behind, int *sizep, int may_change);
+ int (*add_internal_bitmap)(struct supertype *st, void *sbv, int chunk, int delay, int write_behind, int *sizep, int may_change, int major);
void (*locate_bitmap)(struct supertype *st, int fd, void *sbv);
int (*write_bitmap)(struct supertype *st, int fd, void *sbv);
int major;
@@ -265,7 +265,8 @@ extern int Kill(char *dev, int force);
extern int CreateBitmap(char *filename, int force, char uuid[16],
unsigned long chunksize, unsigned long daemon_sleep,
unsigned long write_behind,
- unsigned long long array_size);
+ unsigned long long array_size,
+ int major);
extern int ExamineBitmap(char *filename, int brief, struct supertype *st);
extern int md_get_version(int fd);