From: Alex S. <ml...@os...> - 2009-08-02 10:43:31
|
Hi, I`m finishing os_freebsd.cpp porting to the new interface. Most of work is already done, it works fine for me. What was already done: 1) Added USB type auto-detection using CAM subsystem and USB bus query. 2) Most of the code moved to the new interface (still have some todos with escalade_command_interface). 3) Tested with ATA/SATA/SCSI and USB-SATA drives, no regression found. 4) Added freebsd_smart_interface::get_os_version_str() (very important function ;-)) Currently i`m finishing code cleanup, but i need help with testing, especially with HPT, AMCC/3ware and CCISS devices already supported by smartctl. I have no access to such devices, and i think that its better to test all of them before submitting the patch. Please, write me if you can help. P.S. Auto detection samples: Old IDE drive: samm>~/src/smartmontools: ./smartctl /dev/ad0 -d test smartctl 5.39 2009-07-31 r2867M [FreeBSD-7.1-RELEASE-p2-i386] (local build) Copyright (C) 2002-9 by Bruce Allen, http://smartmontools.sourceforge.net /dev/ad0: Device of type 'ata' [ATA] detected /dev/ad0: Device of type 'ata' [ATA] opened USBSunPlus SATA->USB samm>~/src/smartmontools: ./smartctl /dev/da0 -d test smartctl 5.39 2009-07-31 r2867M [FreeBSD-7.1-RELEASE-p2-i386] (local build) Copyright (C) 2002-9 by Bruce Allen, http://smartmontools.sourceforge.net /dev/da0 [USB Sunplus]: Device of type 'usbsunplus' [ATA] detected /dev/da0 [USB Sunplus]: Device of type 'usbsunplus' [ATA] opened My SD card reader, just for fun samm>~/src/smartmontools: ./smartctl /dev/da1 -d test smartctl 5.39 2009-07-31 r2867M [FreeBSD-7.1-RELEASE-p2-i386] (local build) Copyright (C) 2002-9 by Bruce Allen, http://smartmontools.sourceforge.net /dev/da1: Unknown USB bridge [0x058f:0x6362 (0x126)] Smartctl: please specify device type with the -d option. Use smartctl -h to get a usage summary |