Hello community, here is the log from the commit of package libatasmart for openSUSE:Factory checked in at Sat Oct 3 00:40:40 CEST 2009. -------- --- GNOME/libatasmart/libatasmart.changes 2009-09-09 18:49:23.000000000 +0200 +++ libatasmart/libatasmart.changes 2009-10-02 15:21:41.000000000 +0200 @@ -1,0 +2,6 @@ +Fri Oct 2 15:08:43 CEST 2009 - vuntz@opensuse.org + +- Add libatasmart-jmicron.patch to fix issues with some bridges not + working well. See rh#515881 for details. + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- libatasmart-jmicron.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libatasmart.spec ++++++ --- /var/tmp/diff_new_pack.rm5fTH/_old 2009-10-03 00:38:40.000000000 +0200 +++ /var/tmp/diff_new_pack.rm5fTH/_new 2009-10-03 00:38:40.000000000 +0200 @@ -20,12 +20,14 @@ Name: libatasmart Version: 0.14 -Release: 1 +Release: 2 License: LGPL v2.1 or later Summary: ATA S.M.A.R.T. Disk Health Monitoring Library Url: http://git.0pointer.de/?p=libatasmart.git;a=summary Group: System/Libraries Source: %{name}-%{version}.tar.bz2 +# PATCH-FIX-UPSTREAM libatasmart-jmicron.patch vuntz@opensuse.org -- Taken from git +Patch0: libatasmart-jmicron.patch BuildRequires: libudev-devel BuildRequires: pkgconfig BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -65,6 +67,7 @@ %prep %setup -q +%patch0 -p1 %build %configure --disable-static ++++++ libatasmart-jmicron.patch ++++++ X-Git-Url: http://git.0pointer.de/?p=libatasmart.git;a=blobdiff_plain;f=atasmart.c;h=01... diff --git a/atasmart.c b/atasmart.c index b6bcb90..01d3cb2 100644 --- a/atasmart.c +++ b/atasmart.c @@ -2474,15 +2474,30 @@ static int disk_find_type(SkDisk *d, dev_t devnum) { goto finish; } - if ((vid == 0x0c0b && pid == 0xb159) || - (vid == 0x04fc && pid == 0x0c25) || - (vid == 0x04fc && pid == 0x0c15)) - d->type = SK_DISK_TYPE_SUNPLUS; - else if ((vid == 0x152d && pid == 0x2329) || - (vid == 0x152d && pid == 0x2336) || + if ((vid == 0x152d && pid == 0x2329) || (vid == 0x152d && pid == 0x2338) || (vid == 0x152d && pid == 0x2339)) + /* Some JMicron bridges seem to choke on SMART + * commands, so let's explicitly black list + * them here. + * + * https://bugzilla.redhat.com/show_bug.cgi?id=515881 + * + * At least some of the JMicron bridges with + * these vids/pids choke on the jmicron access + * mode. To make sure we don't break things + * for people we now disable this by + * default.*/ + d->type = SK_DISK_TYPE_NONE; + else if ((vid == 0x152d && pid == 0x2336)) + /* This JMicron bridge seems to always work + * with SMART commands send with the jmicron + * access mode. */ d->type = SK_DISK_TYPE_JMICRON; + else if ((vid == 0x0c0b && pid == 0xb159) || + (vid == 0x04fc && pid == 0x0c25) || + (vid == 0x04fc && pid == 0x0c15)) + d->type = SK_DISK_TYPE_SUNPLUS; else d->type = SK_DISK_TYPE_ATA_PASSTHROUGH_12; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org