git: DragonFly_RELEASE_3_6 kernel/nataraid: Fix a bug for array sizes >2TB.
Sascha Wildner
swildner at crater.dragonflybsd.org
Mon Feb 17 09:14:09 PST 2014
commit 5126288c8cb02f6584243cc34bab3b62a3eae20a
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/5126288c8cb02f6584243cc34bab3b62a3eae20a
--
DragonFly BSD source repository
More information about the Commits
mailing list