diff options
author | Neil Brown <neilb@suse.de> | 2005-08-09 07:23:20 +0200 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2005-08-09 07:23:20 +0200 |
commit | 947fd4ddb554fd2c3d81c190dfe63407f8771eb8 (patch) | |
tree | 10b16db86578ca184faabae4232a886d2cff1ddc /Query.c | |
parent | Add write-behind support (diff) | |
download | 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 'Query.c')
-rw-r--r-- | Query.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -42,6 +42,7 @@ int Query(char *dev) int ioctlerr; int superror, superrno; struct mdinfo info; + struct mddev_ident_s ident; mdu_array_info_t array; void *super; struct supertype *st = NULL; @@ -104,7 +105,7 @@ int Query(char *dev) close(fd); if (superror == 0) { /* array might be active... */ - st->ss->getinfo_super(&info, super); + st->ss->getinfo_super(&info, &ident, super); if (st->ss->major == 0) { mddev = get_md_name(info.array.md_minor); disc.number = info.disk.number; |