summaryrefslogtreecommitdiff
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-08-11 10:27:31 +1000
committerNeilBrown <neilb@suse.de>2014-08-11 10:34:36 +1000
commitcc742d38071c631311309b68b51f8938cdf916be (patch)
tree35b8cff7992f04fce414fa018af50e2d06325213 /mdadm.h
parent5dffd09d24c3dcc690677910219254e0703503e3 (diff)
util: split get_maj_min() out from dev_open()
This allows other code to parse "8:3" style device names. 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 dc3c107d..fc1fd318 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -1283,6 +1283,7 @@ extern int check_partitions(int fd, char *dname,
unsigned long long size);
extern int get_mdp_major(void);
+extern int get_maj_min(char *dev, int *major, int *minor);
extern int dev_open(char *dev, int flags);
extern int open_dev(char *devnm);
extern void reopen_mddev(int mdfd);