X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=Create.c;h=9058af1837bef34de8dc0ec776174bfb8c6c689f;hp=69192abb23b415147a19c60c898dd221d722e329;hb=3c558363a1991430e8a9e10c93ee9ee3f8996940;hpb=6c386dd368ca1d24554fbf700239e8aa222591fb 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();