diff options
author | Neil Brown <neilb@suse.de> | 2006-03-27 04:34:38 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-03-27 04:34:38 +0000 |
commit | 313176636ee8c24cf1464cfec159d41ffcffacb3 (patch) | |
tree | 866eefc2751994b4d598dcc524b2e192cf7028bd /super1.c | |
parent | 2efedc7bd23b4796fcf535cb28f796b235aff9ca (diff) | |
download | mdadm-313176636ee8c24cf1464cfec159d41ffcffacb3.tar.gz mdadm-313176636ee8c24cf1464cfec159d41ffcffacb3.tar.xz mdadm-313176636ee8c24cf1464cfec159d41ffcffacb3.zip |
Remove ident arg from getinfo_super;
Add a 'name' field to 'info' to compensate.
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'super1.c')
-rw-r--r-- | super1.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -353,7 +353,7 @@ static void uuid_from_super1(int uuid[4], void * sbv) cuuid[i] = super->set_uuid[i]; } -static void getinfo_super1(struct mdinfo *info, mddev_ident_t ident, void *sbv) +static void getinfo_super1(struct mdinfo *info, void *sbv) { struct mdp_superblock_1 *sb = sbv; int working = 0; @@ -399,8 +399,8 @@ static void getinfo_super1(struct mdinfo *info, mddev_ident_t ident, void *sbv) memcpy(info->uuid, sb->set_uuid, 16); - strncpy(ident->name, sb->set_name, 32); - ident->name[32] = 0; + strncpy(info->name, sb->set_name, 32); + info->name[32] = 0; if (sb->feature_map & __le32_to_cpu(MD_FEATURE_RESHAPE_ACTIVE)) { info->reshape_active = 1; |