checked in
OBS-URL: https://build.opensuse.org/package/show/Base:System/libatasmart?expand=0&rev=7
This commit is contained in:
parent
73fe6aec4b
commit
32049ecbd7
3
libatasmart-0.14.tar.bz2
Normal file
3
libatasmart-0.14.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e7cf001b963920f3662992b4e625407181759cbfe66580acd088e085f952f507
|
||||||
|
size 298966
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:f09f63c791a4b7f3b2891672e65af7b819847fa6bfbfc58a695ecf9cf579f88c
|
|
||||||
size 302192
|
|
43
libatasmart-jmicron.patch
Normal file
43
libatasmart-jmicron.patch
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
X-Git-Url: http://git.0pointer.de/?p=libatasmart.git;a=blobdiff_plain;f=atasmart.c;h=01d3cb2cca0817963b91f7f1c9cd72fde8b10b91;hp=b6bcb90b1662ca0a99fe89cf5c8aeb4cdbcc7e49;hb=HEAD;hpb=7e8f3350aea65ed203305c8e7e4fc1cfd4656393
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
@ -1,20 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Fri Nov 13 12:54:33 CET 2009 - vuntz@opensuse.org
|
|
||||||
|
|
||||||
- Update to version 0.17:
|
|
||||||
+ Add various blobs
|
|
||||||
+ Ignore attributes 5 and 190 on some Apple SSD
|
|
||||||
+ Check the right boolean when calculating blob size
|
|
||||||
+ Delay smart initialization until the first SMART call is done
|
|
||||||
- Changes from version 0.16:
|
|
||||||
+ Disable jmicron access mode for some more jmicron bridges
|
|
||||||
- Changes from version 0.15:
|
|
||||||
+ Support some ssd smart attrs
|
|
||||||
+ Add various blobs.
|
|
||||||
+ Blacklist 152d:2329 jmicron usb bridges
|
|
||||||
+ Add vala vapi files.
|
|
||||||
- Drop libatasmart-jmicron.patch: fixed upstream.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 2 15:08:43 CEST 2009 - vuntz@opensuse.org
|
Fri Oct 2 15:08:43 CEST 2009 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libatasmart (Version 0.17)
|
# spec file for package libatasmart (Version 0.14)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -19,13 +19,15 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: libatasmart
|
Name: libatasmart
|
||||||
Version: 0.17
|
Version: 0.14
|
||||||
Release: 1
|
Release: 2
|
||||||
License: LGPL v2.1 or later
|
License: LGPL v2.1 or later
|
||||||
Summary: ATA S.M.A.R.T. Disk Health Monitoring Library
|
Summary: ATA S.M.A.R.T. Disk Health Monitoring Library
|
||||||
Url: http://git.0pointer.de/?p=libatasmart.git;a=summary
|
Url: http://git.0pointer.de/?p=libatasmart.git;a=summary
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Source: %{name}-%{version}.tar.bz2
|
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: libudev-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@ -65,6 +67,7 @@ health monitoring.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
@ -73,8 +76,6 @@ make %{?jobs:-j%jobs}
|
|||||||
%install
|
%install
|
||||||
%makeinstall
|
%makeinstall
|
||||||
rm -f %{buildroot}%{_libdir}/*.la
|
rm -f %{buildroot}%{_libdir}/*.la
|
||||||
# We already package this
|
|
||||||
rm %{buildroot}%{_datadir}/doc/libatasmart/README
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
@ -98,8 +99,5 @@ rm -rf %{buildroot}
|
|||||||
%{_includedir}/atasmart.h
|
%{_includedir}/atasmart.h
|
||||||
%{_libdir}/libatasmart.so
|
%{_libdir}/libatasmart.so
|
||||||
%{_libdir}/pkgconfig/libatasmart.pc
|
%{_libdir}/pkgconfig/libatasmart.pc
|
||||||
%dir %{_datadir}/vala
|
|
||||||
%dir %{_datadir}/vala/vapi
|
|
||||||
%{_datadir}/vala/vapi/*.vapi
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user