summaryrefslogtreecommitdiff
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-08-01 14:32:04 +1000
committerNeilBrown <neilb@suse.de>2013-08-01 14:32:04 +1000
commitbc17158dcc9eac6eed4b84d1f41d1dcaa108cb9b (patch)
tree31d02887a1d5f157272385af8015efbb35c7ee5b /mdadm.h
parent879982efa90c8cf6b7afc708316cf47c4247bfe3 (diff)
Introduce devid2kname - slightly different to devid2devnm.
The purpose od devid2devnm is to return a kernel name of an md device, whether that device is a whole device or a partition, we want the whole device. md4, never md4p2. In one place I was using devid2devnm where I really wanted the partition if there was one ... and wasn't really interested in it being an md device. So introduce a new 'devid2kname' for that case. 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 5463bfba..c5d9c301 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -1349,6 +1349,7 @@ extern void print_r10_layout(int layout);
extern char *find_free_devnm(int use_partitions);
extern void put_md_name(char *name);
+extern char *devid2kname(int devid);
extern char *devid2devnm(int devid);
extern int devnm2devid(char *devnm);
extern char *get_md_name(char *devnm);