summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorTrela, Maciej <Maciej.Trela@intel.com>2009-12-08 16:07:47 +1100
committerNeilBrown <neilb@suse.de>2009-12-08 16:07:47 +1100
commit034b203a4754da7615d7b16bafeabfc4115dabea (patch)
treef38ae874366d829477f67131581a00b5913c7e7e /mdadm.h
parentf98841b3852ceb7fce56a6f818236a4af9b5a00a (diff)
downloadmdadm-034b203a4754da7615d7b16bafeabfc4115dabea.tar.gz
mdadm-034b203a4754da7615d7b16bafeabfc4115dabea.tar.xz
mdadm-034b203a4754da7615d7b16bafeabfc4115dabea.zip
Check partition tables when creating array.
When creating an array, check if the devices have partition tables and print a warning if the table or the partitions might be destroyed by array creation. 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 c7f864b..2bfe840 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -787,6 +787,7 @@ extern int parse_layout_faulty(char *layout);
extern int check_ext2(int fd, char *name);
extern int check_reiser(int fd, char *name);
extern int check_raid(int fd, char *name);
+extern int check_partitions(int fd, char *dname, unsigned long long freesize);
extern int get_mdp_major(void);
extern int dev_open(char *dev, int flags);