diff options
author | NeilBrown <neilb@suse.de> | 2008-08-19 09:55:15 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-08-19 09:55:15 +0200 |
commit | 3c558363a1991430e8a9e10c93ee9ee3f8996940 (patch) | |
tree | abdf504295509f53b43d465e93c36b04810c5e7d /Create.c | |
parent | imsm: allow container assembly in the presence of failed disks (diff) | |
download | mdadm-3c558363a1991430e8a9e10c93ee9ee3f8996940.tar.xz mdadm-3c558363a1991430e8a9e10c93ee9ee3f8996940.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |