summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-05-15 16:48:19 +1000
committerNeil Brown <neilb@suse.de>2008-05-15 16:48:19 +1000
commit598f0d58ac3544e25f90f2d34337e15764f4d877 (patch)
tree9cfe332da8c0deee87065a14014a2904ee991902 /util.c
parenta19c88b83db3cc25affb75fe2d5531c964379d96 (diff)
downloadmdadm-598f0d58ac3544e25f90f2d34337e15764f4d877.tar.gz
mdadm-598f0d58ac3544e25f90f2d34337e15764f4d877.tar.xz
mdadm-598f0d58ac3544e25f90f2d34337e15764f4d877.zip
Can now mostly assemble DDF arrays
Diffstat (limited to 'util.c')
-rw-r--r--util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util.c b/util.c
index 3838b6e..7b43ee2 100644
--- a/util.c
+++ b/util.c
@@ -390,6 +390,9 @@ int is_standard(char *dev, int *nump)
/* tests if dev is a "standard" md dev name.
* i.e if the last component is "/dNN" or "/mdNN",
* where NN is a string of digits
+ * Returns 1 if a partitionable standard,
+ * -1 if non-partitonable,
+ * 0 if not a standard name.
*/
char *d = strrchr(dev, '/');
int type=0;