summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-08-11 02:27:31 +0200
committerNeilBrown <neilb@suse.de>2014-08-11 02:34:36 +0200
commitcc742d38071c631311309b68b51f8938cdf916be (patch)
tree35b8cff7992f04fce414fa018af50e2d06325213 /mdadm.h
parentManage: simplify `rdev` handling in Manage_subdevs. (diff)
downloadmdadm-cc742d38071c631311309b68b51f8938cdf916be.tar.xz
mdadm-cc742d38071c631311309b68b51f8938cdf916be.zip
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);