summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-04-29 16:09:59 +1000
committerNeilBrown <neilb@suse.de>2010-04-29 16:09:59 +1000
commit691c6ee1b6bb77bc44a5474d856771b0aec9882d (patch)
tree64b9b56a0662289302e13307ad6dc1d1289941b2 /mdadm.h
parent4eb269706f403d2424166683688f0a41d893c1c3 (diff)
downloadmdadm-691c6ee1b6bb77bc44a5474d856771b0aec9882d.tar.gz
mdadm-691c6ee1b6bb77bc44a5474d856771b0aec9882d.tar.xz
mdadm-691c6ee1b6bb77bc44a5474d856771b0aec9882d.zip
IMSM/DDF: don't recognised these metadata on partitions.
These metadata are not expected on partitions, and they have no way of differentiation whether which is correct if they are found both on the device and on the last partition. So if the device is a partition, refuse to read the metadata. Signed-off-by: NeilBrown <neilb@suse.de>
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 1bf5ac0..d9d17b0 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -876,6 +876,7 @@ extern int enough(int level, int raid_disks, int layout, int clean,
extern int ask(char *mesg);
extern unsigned long long get_component_size(int fd);
extern void remove_partitions(int fd);
+extern int test_partition(int fd);
extern unsigned long long calc_array_size(int level, int raid_disks, int layout,
int chunksize, unsigned long long devsize);
extern int flush_metadata_updates(struct supertype *st);