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