summaryrefslogtreecommitdiff
path: root/Create.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-08-19 17:55:15 +1000
committerNeilBrown <neilb@suse.de>2008-08-19 17:55:15 +1000
commit3c558363a1991430e8a9e10c93ee9ee3f8996940 (patch)
treeabdf504295509f53b43d465e93c36b04810c5e7d /Create.c
parent6c386dd368ca1d24554fbf700239e8aa222591fb (diff)
Factor out test for subarray version string.
We are about to change the syntax of the version string for 'subarray's. So factor out the test into a single function. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Create.c')
-rw-r--r--Create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Create.c b/Create.c
index 69192abb..9058af18 100644
--- a/Create.c
+++ b/Create.c
@@ -523,7 +523,7 @@ int Create(struct supertype *st, char *mddev, int mdfd,
st->ss->getinfo_super(st, &info);
if (did_default && verbose >= 0) {
- if (info.text_version[0] == '/') {
+ if (is_subarray(info.text_version)) {
int dnum = devname2devnum(info.text_version+1);
char *path;
int mdp = get_mdp_major();