diff options
author | NeilBrown <neilb@suse.com> | 2016-01-28 01:57:54 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.com> | 2016-01-28 01:57:54 +0100 |
commit | 9f7f28ee5030bbed94c4d54a8da908649ccb7ce0 (patch) | |
tree | 9be359fe297b8a3a0cf628e4a1bcb4138ff7cb6f /super0.c | |
parent | systemd/mdadm-last-resort: add Conflicts to .service file. (diff) | |
download | mdadm-9f7f28ee5030bbed94c4d54a8da908649ccb7ce0.tar.xz mdadm-9f7f28ee5030bbed94c4d54a8da908649ccb7ce0.zip |
super0: Fix reporting of devices between 2GB and 4GB
v0.90 metadata can handle devices between 2GB and 4GB, but we need
to treat the 'size' and unsigned. In a couple of places we don't.
URL: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809447
Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'super0.c')
-rw-r--r-- | super0.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -405,7 +405,8 @@ static void getinfo_super0(struct supertype *st, struct mdinfo *info, char *map) info->array.utime = sb->utime; info->array.chunk_size = sb->chunk_size; info->array.state = sb->state; - info->component_size = sb->size*2; + info->component_size = sb->size; + info->component_size *= 2; if (sb->state & (1<<MD_SB_BITMAP_PRESENT)) info->bitmap_offset = 8; |