Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
mdadm.5365
0180-ddf-use-64bit-size-not-32bit-info-size-for...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0180-ddf-use-64bit-size-not-32bit-info-size-for-create.patch of Package mdadm.5365
From eddaacc304ba34a28ebba4b0239dd2da072b54bb Mon Sep 17 00:00:00 2001 From: NeilBrown <neilb@suse.com> Date: Thu, 10 Mar 2016 18:06:59 +1100 Subject: [PATCH 244/359] ddf: use 64bit 'size', not 32bit 'info->size' for create. References: bsc#1081910 The 'size' field of mdu_disk_info_t is 32bit and should not be used except for legacy ioctls. super-ddf got this wrong :-( This change makes it possible to create ddf arrays which used more than 2TB of each device. Reported-by: Dan Russell <dpr@aol.com> Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Coly Li <colyli@suse.de> --- super-ddf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/super-ddf.c b/super-ddf.c index faaf0a7..1707ad1 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -2688,10 +2688,10 @@ static int init_super_ddf_bvd(struct supertype *st, free(vcl); return 0; } - vc->blocks = cpu_to_be64(info->size * 2); + vc->blocks = cpu_to_be64(size * 2); vc->array_blocks = cpu_to_be64( calc_array_size(info->level, info->raid_disks, info->layout, - info->chunk_size, info->size*2)); + info->chunk_size, size * 2)); memset(vc->pad1, 0xff, 8); vc->spare_refs[0] = cpu_to_be32(0xffffffff); vc->spare_refs[1] = cpu_to_be32(0xffffffff); -- 2.16.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor