diff --git a/smartmontools/CHANGELOG b/smartmontools/CHANGELOG index 00f794038edd8133e2c2179166795bb2c78b59ec..b506d428c68fbda55c766f517a11e963316468b4 100644 --- a/smartmontools/CHANGELOG +++ b/smartmontools/CHANGELOG @@ -43,6 +43,8 @@ NOTES FOR FUTURE RELEASES: see TODO file. <DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE> + [AS] Linux: Autodetect DELL PERC controller. + [AS] Linux: Fixed SATA drives support on megaraid device (see ticket #15). [AS] FreeBSD: Removed all old detection code, moving everything to diff --git a/smartmontools/os_linux.cpp b/smartmontools/os_linux.cpp index 3bb16ddefda4d0c7f68494069e2a2f7d2ed39203..f5b0a387d6f4552161d57062088e6dec379cbbf6 100644 --- a/smartmontools/os_linux.cpp +++ b/smartmontools/os_linux.cpp @@ -2676,7 +2676,13 @@ smart_device * linux_scsi_device::autodetect_open() "you may need to replace %s with /dev/twaN or /dev/tweN", get_dev_name()); return this; } - + // DELL? + if (!memcmp(req_buff + 8, "DELL PERC", 12)) { + close(); + set_err(EINVAL, "DELL controller, please try adding '-d megaraid,N'"); + return this; + } + // Marvell ? if (len >= 42 && !memcmp(req_buff + 36, "MVSATA", 6)) { //pout("Device %s: using '-d marvell' for ATA disk with Marvell driver\n", get_dev_name());