diff options
author | NeilBrown <neilb@suse.de> | 2010-04-29 16:09:59 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-04-29 16:09:59 +1000 |
commit | 691c6ee1b6bb77bc44a5474d856771b0aec9882d (patch) | |
tree | 64b9b56a0662289302e13307ad6dc1d1289941b2 /mdadm.h | |
parent | 4eb269706f403d2424166683688f0a41d893c1c3 (diff) | |
download | mdadm-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |