summaryrefslogtreecommitdiffstats
path: root/super1.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-03-28 22:44:05 +0000
committerNeil Brown <neilb@suse.de>2006-03-28 22:44:05 +0000
commitbed256c2419986e3a935680a7ead1def11ea08e7 (patch)
tree3c06bb613f244208fc30bfef21a9423eba094542 /super1.c
parent4027ddcaa4b613a2ac2e6aa4eb0b157d7708f156 (diff)
downloadmdadm-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/super1.c b/super1.c
index 38b53e7..45c3d95 100644
--- a/super1.c
+++ b/super1.c
@@ -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;