diff options
author | NeilBrown <neilb@suse.de> | 2014-08-11 02:27:31 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2014-08-11 02:34:36 +0200 |
commit | cc742d38071c631311309b68b51f8938cdf916be (patch) | |
tree | 35b8cff7992f04fce414fa018af50e2d06325213 /mdadm.h | |
parent | Manage: simplify `rdev` handling in Manage_subdevs. (diff) | |
download | mdadm-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |