diff --git a/gsmartcontrol/configure-dev b/gsmartcontrol/configure-dev index a9895a5..a12076e 100755 --- a/gsmartcontrol/configure-dev +++ b/gsmartcontrol/configure-dev @@ -31,7 +31,7 @@ case $type in flags="CC=i386-pc-mingw32-gcc CXX=i386-pc-mingw32-g++ \ PKG_CONFIG_PATH=/cross/w32/target/lib/pkgconfig PKG_CONFIG_LIBDIR=\"\" \ PATH=\"/cross/w32/gcc-bin:/cross/w32/target/bin:$PATH\" \ - --with-windows-gtk-name=gtk2-runtime-2.16.6-2010-02-24-ash --disable-user-flags \ + --with-windows-gtk-name=gtk2-runtime-2.16.6-2010-05-12-ash --disable-user-flags \ --enable-optimize-options --enable-tests --build=i686-linux --host=i386-pc-mingw32" ;; win32-debug) flags="CC=i386-pc-mingw32-gcc CXX=i386-pc-mingw32-g++ \ diff --git a/gsmartcontrol/data/nsis/distribution-nogtk.txt.in b/gsmartcontrol/data/nsis/distribution-nogtk.txt.in index 4040ab3..75d23d2 100644 --- a/gsmartcontrol/data/nsis/distribution-nogtk.txt.in +++ b/gsmartcontrol/data/nsis/distribution-nogtk.txt.in @@ -20,7 +20,7 @@ binary was compiled for 32-bit Windows, and should work on both 32-bit and 64-bit Windows. The binary was statically compiled against Gtkmm (http://www.gtkmm.org/) and related libraries, and PCRE (http://www.pcre.org/). -* Smartctl binaries (from smartmontools 5.39.1, http://smartmontools.sf.net/) +* Smartctl binaries (from smartmontools 5.41, http://smartmontools.sf.net/) - smartctl-nc.exe (compiled without console output), smartctl.exe (compiled with console output). diff --git a/gsmartcontrol/data/nsis/distribution.txt.in b/gsmartcontrol/data/nsis/distribution.txt.in index a963c4f..f0e6e0a 100644 --- a/gsmartcontrol/data/nsis/distribution.txt.in +++ b/gsmartcontrol/data/nsis/distribution.txt.in @@ -16,7 +16,7 @@ binary was compiled for 32-bit Windows, and should work on both 32-bit and 64-bit Windows. The binary was statically compiled against Gtkmm (http://www.gtkmm.org/) and related libraries, and PCRE (http://www.pcre.org/). -* Smartctl binaries (from smartmontools 5.39.1, http://smartmontools.sf.net/) +* Smartctl binaries (from smartmontools 5.41, http://smartmontools.sf.net/) - smartctl-nc.exe (compiled without console output), smartctl.exe (compiled with console output). diff --git a/gsmartcontrol/src/applib/Makefile.am b/gsmartcontrol/src/applib/Makefile.am index b3544a4..fc29c8a 100644 --- a/gsmartcontrol/src/applib/Makefile.am +++ b/gsmartcontrol/src/applib/Makefile.am @@ -9,7 +9,7 @@ libapplib_a_SOURCES = app_gtkmm_utils.cpp app_pango_utils.cpp cmdex.cpp \ noinst_HEADERS = app_gtkmm_features.h app_gtkmm_utils.h app_pango_utils.h \ app_pcrecpp.h app_ui_res_utils.h cmdex.h cmdex_sync.h cmdex_sync_gui.h executor_factory.h gui_utils.h \ selftest.h smartctl_executor.h smartctl_executor_gui.h smartctl_parser.h \ - storage_detector.h storage_detector_linux.h storage_detector_other.h \ + storage_detector.h storage_detector_helpers.h storage_detector_linux.h storage_detector_other.h \ storage_detector_win32.h storage_device.h storage_property.h storage_property_colors.h \ storage_property_descr.h storage_settings.h tw_cli_executor.h wrapping_label.h diff --git a/gsmartcontrol/src/applib/storage_detector_linux.cpp b/gsmartcontrol/src/applib/storage_detector_linux.cpp index 4e8bf8d..67ddd07 100644 --- a/gsmartcontrol/src/applib/storage_detector_linux.cpp +++ b/gsmartcontrol/src/applib/storage_detector_linux.cpp @@ -342,8 +342,9 @@ inline std::string detect_drives_linux_proc_partitions(std::vectorfetch_basic_data_and_parse(smartctl_ex); // 3ware controllers also export themselves as sd*. Smartctl detects that, - // so we can avoid adding them. - if (!app_pcre_match("/AMCC/3ware controller/im", drive->get_info_output())) { + // so we can avoid adding them. Older smartctl (5.38) prints "AMCC", newer one + // prints "AMCC/3ware controller". + if (!app_pcre_match("/AMCC/im", drive->get_info_output()) && !app_pcre_match("/3ware controller/im", drive->get_info_output())) { drives.push_back(drive); } }