summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-10-13 05:15:16 +1100
committerNeilBrown <neilb@suse.de>2008-10-15 14:36:21 +1100
commit80e424ea74c62ff6c98eb60199119b91d673ce04 (patch)
treead1017e42c97095030862d3f35450ee63138cfeb /mdadm.h
parent28e37719aaef11a5d3aa940bac92063cbaca8648 (diff)
downloadmdadm-80e424ea74c62ff6c98eb60199119b91d673ce04.tar.gz
mdadm-80e424ea74c62ff6c98eb60199119b91d673ce04.tar.xz
mdadm-80e424ea74c62ff6c98eb60199119b91d673ce04.zip
Manage: allow adding device that is just large enough to v1.x array.
When adding a device to an array, we check that it is large enough. Currently the check makes sure there is also room for a reasonably sized bitmap. But if the array doesn't have a bitmap, then this test might be too restrictive. So when adding, only insist there is enough space for the current bitmap. When Creating, still require room for the standard sized bitmap. This resolved Debian Bug 500309
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index 5c18d15..ce140e5 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -474,6 +474,7 @@ extern int CreateBitmap(char *filename, int force, char uuid[16],
int major);
extern int ExamineBitmap(char *filename, int brief, struct supertype *st);
extern int bitmap_update_uuid(int fd, int *uuid, int swap);
+extern unsigned long bitmap_sectors(struct bitmap_super_s *bsb);
extern int md_get_version(int fd);
extern int get_linux_version(void);