git: kernel/nataraid: Fix a bug for array sizes >2TB.
Sascha Wildner
swildner at crater.dragonflybsd.org
Mon Feb 17 09:11:41 PST 2014
commit feabea0f74a8f331b47ca132bf32f2c82e8a283a
Author: Sascha Wildner <saw at online.de>
Date: Sun Feb 16 23:51:16 2014 +0100
kernel/nataraid: Fix a bug for array sizes >2TB.
The overall array size (total_sectors) in the softc was already 64 bit
wide but due to a missing cast when multiplying the 32 bit disk size
by the number of disks, it never became larger than 32 bits.
Also, the disk size was signed when it should have been unsigned.
Note that these fixes apply to RAIDs created using natacontrol(8), but
not necessarily to those created with BIOS utilities.
Reported-by: Aaron Bieber <deftly at gmail.com>
Summary of changes:
sys/dev/disk/nata/ata-raid.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/feabea0f74a8f331b47ca132bf32f2c82e8a283a
--
DragonFly BSD source repository
More information about the Commits
mailing list