updated to 5.41

This commit is contained in:
Michal Hlavinka 2011-06-10 13:19:27 +02:00
parent eaa1acf49f
commit 82e82572f3
4 changed files with 7 additions and 40 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
smartmontools-5.39.1.tar.gz smartmontools-5.39.1.tar.gz
/smartmontools-r3169.tar.gz /smartmontools-r3169.tar.gz
/smartmontools-5.40.tar.gz /smartmontools-5.40.tar.gz
/smartmontools-5.41.tar.gz

View File

@ -1,33 +0,0 @@
diff -up smartmontools-5.39.1/os_linux.cpp.megaraid smartmontools-5.39.1/os_linux.cpp
--- smartmontools-5.39.1/os_linux.cpp.megaraid 2010-01-28 21:24:32.000000000 +0100
+++ smartmontools-5.39.1/os_linux.cpp 2010-11-15 12:58:56.648181400 +0100
@@ -1095,17 +1095,21 @@ bool linux_megaraid_device::megasas_cmd(
pthru->cdb_len = cdbLen;
pthru->timeout = 0;
pthru->flags = MFI_FRAME_DIR_READ;
- pthru->sge_count = 1;
- pthru->data_xfer_len = dataLen;
- pthru->sgl.sge32[0].phys_addr = (intptr_t)data;
- pthru->sgl.sge32[0].length = (uint32_t)dataLen;
+ if (dataLen > 0) {
+ pthru->sge_count = 1;
+ pthru->data_xfer_len = dataLen;
+ pthru->sgl.sge32[0].phys_addr = (intptr_t)data;
+ pthru->sgl.sge32[0].length = (uint32_t)dataLen;
+ }
memcpy(pthru->cdb, cdb, cdbLen);
uio.host_no = m_hba;
- uio.sge_count = 1;
- uio.sgl_off = offsetof(struct megasas_pthru_frame, sgl);
- uio.sgl[0].iov_base = data;
- uio.sgl[0].iov_len = dataLen;
+ if (dataLen > 0) {
+ uio.sge_count = 1;
+ uio.sgl_off = offsetof(struct megasas_pthru_frame, sgl);
+ uio.sgl[0].iov_base = data;
+ uio.sgl[0].iov_len = dataLen;
+ }
rc = 0;
errno = 0;

View File

@ -1,7 +1,7 @@
Summary: Tools for monitoring SMART capable hard disks Summary: Tools for monitoring SMART capable hard disks
Name: smartmontools Name: smartmontools
Version: 5.40 Version: 5.41
Release: 10%{?dist} Release: 1%{?dist}
Epoch: 1 Epoch: 1
Group: System Environment/Base Group: System Environment/Base
License: GPLv2+ License: GPLv2+
@ -15,9 +15,6 @@ Source4: smartdnotify
#fedora/rhel specific #fedora/rhel specific
Patch1: smartmontools-5.38-defaultconf.patch Patch1: smartmontools-5.38-defaultconf.patch
#from upstream, for smartmontools <= 5.40
Patch2: smartmontools-5.40-megaraid.patch
Patch3: smartmontools-5.40-manfix.patch Patch3: smartmontools-5.40-manfix.patch
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
@ -41,7 +38,6 @@ failure.
%prep %prep
%setup -q %setup -q
%patch1 -p1 -b .defaultconf %patch1 -p1 -b .defaultconf
%patch2 -p1 -b .megaraid
%patch3 -p1 -b .manfix %patch3 -p1 -b .manfix
# fix encoding # fix encoding
@ -117,6 +113,9 @@ fi
%{_datadir}/%{name} %{_datadir}/%{name}
%changelog %changelog
* Fri Jun 10 2011 Michal Hlavinka <mhlavink@redhat.com> - 1:5.41-1
- updated to 5.41
* Mon May 16 2011 Michal Hlavinka <mhlavink@redhat.com> - 1:5.40-10 * Mon May 16 2011 Michal Hlavinka <mhlavink@redhat.com> - 1:5.40-10
- fix path to notify script (#675778) - fix path to notify script (#675778)

View File

@ -1 +1 @@
0f0be0239914ad87830a4fff594bda5b smartmontools-5.40.tar.gz 4577886bea79d4ff12bd9a7d323ce692 smartmontools-5.41.tar.gz