diff options
author | Neil Brown <neilb@suse.de> | 2005-08-09 05:23:20 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2005-08-09 05:23:20 +0000 |
commit | 947fd4ddb554fd2c3d81c190dfe63407f8771eb8 (patch) | |
tree | 10b16db86578ca184faabae4232a886d2cff1ddc /util.c | |
parent | dfd4d8ee426fb71a369f494f95fe95b114a33c7c (diff) | |
download | mdadm-947fd4ddb554fd2c3d81c190dfe63407f8771eb8.tar.gz mdadm-947fd4ddb554fd2c3d81c190dfe63407f8771eb8.tar.xz mdadm-947fd4ddb554fd2c3d81c190dfe63407f8771eb8.zip |
Support nameing of version-1 arrays.
--name is recognised in --create and --assemble
name= is recognised in config file.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -227,6 +227,7 @@ int check_raid(int fd, char *name) { void *super; struct mdinfo info; + struct mddev_ident_s ident; time_t crtime; struct supertype *st = guess_super(fd); @@ -235,7 +236,7 @@ int check_raid(int fd, char *name) /* Looks like a raid array .. */ fprintf(stderr, Name ": %s appears to be part of a raid array:\n", name); - st->ss->getinfo_super(&info, super); + st->ss->getinfo_super(&info, &ident, super); free(super); crtime = info.array.ctime; fprintf(stderr, " level=%d devices=%d ctime=%s", @@ -607,7 +608,8 @@ struct supertype *guess_super(int fd) rv = ss->load_super(st, fd, &sbp, NULL); if (rv == 0) { struct mdinfo info; - ss->getinfo_super(&info, sbp); + struct mddev_ident_s ident; + ss->getinfo_super(&info, &ident, sbp); if (bestsuper == -1 || besttime < info.array.ctime) { bestsuper = i; |