diff options
author | Neil Brown <neilb@suse.de> | 2006-03-28 22:44:05 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-03-28 22:44:05 +0000 |
commit | bed256c2419986e3a935680a7ead1def11ea08e7 (patch) | |
tree | 3c06bb613f244208fc30bfef21a9423eba094542 /super1.c | |
parent | 4027ddcaa4b613a2ac2e6aa4eb0b157d7708f156 (diff) | |
download | mdadm-bed256c2419986e3a935680a7ead1def11ea08e7.tar.gz mdadm-bed256c2419986e3a935680a7ead1def11ea08e7.tar.xz mdadm-bed256c2419986e3a935680a7ead1def11ea08e7.zip |
Add information about reshape to --detail
Also fix problems with dev names and symlinks
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'super1.c')
-rw-r--r-- | super1.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -369,7 +369,7 @@ static void getinfo_super1(struct mdinfo *info, void *sbv) info->array.md_minor = -1; info->array.ctime = __le64_to_cpu(sb->ctime); info->array.utime = __le64_to_cpu(sb->utime); - info->array.chunk_size = __le32_to_cpu(sb->chunksize)/512; + info->array.chunk_size = __le32_to_cpu(sb->chunksize)*512; info->data_offset = __le64_to_cpu(sb->data_offset); info->component_size = __le64_to_cpu(sb->size); @@ -408,7 +408,7 @@ static void getinfo_super1(struct mdinfo *info, void *sbv) info->new_level = __le32_to_cpu(sb->new_level); info->delta_disks = __le32_to_cpu(sb->delta_disks); info->new_layout = __le32_to_cpu(sb->new_layout); - info->new_chunk = __le32_to_cpu(sb->new_chunk); + info->new_chunk = __le32_to_cpu(sb->new_chunk)<<9; } else info->reshape_active = 0; |