diff options
author | NeilBrown <neilb@suse.de> | 2008-10-13 05:15:16 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-10-15 14:36:21 +1100 |
commit | 80e424ea74c62ff6c98eb60199119b91d673ce04 (patch) | |
tree | ad1017e42c97095030862d3f35450ee63138cfeb /mdadm.h | |
parent | 28e37719aaef11a5d3aa940bac92063cbaca8648 (diff) | |
download | mdadm-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |