diff --git a/dmraid-1.0.0.rc14-ddf1_segfault.patch b/dmraid-1.0.0.rc14-ddf1_segfault.patch new file mode 100644 index 0000000..8c1d0cc --- /dev/null +++ b/dmraid-1.0.0.rc14-ddf1_segfault.patch @@ -0,0 +1,15 @@ +Index: 1.0.0.rc14/lib/metadata/metadata.c +=================================================================== +--- 1.0.0.rc14.orig/lib/metadata/metadata.c ++++ 1.0.0.rc14/lib/metadata/metadata.c +@@ -797,6 +797,10 @@ static void want_set(struct lib_context + if (name) { + size_t len1 = strlen(rs->name), len2 = strlen(name); + ++ /* FIXME: skip the DDF1 superset to get rid of segfault */ ++ if (strncmp(rs->name, ".ddf1_", 6) == 0) ++ return; ++ + if (len2 > len1 || + strncmp(rs->name, name, min(len1, len2))) { + log_notice(lc, "dropping unwanted RAID set \"%s\"", diff --git a/dmraid.changes b/dmraid.changes index c994bd3..4ecfd42 100644 --- a/dmraid.changes +++ b/dmraid.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Mar 12 16:24:06 CET 2008 - mkoenig@suse.de + +- add hack to avoid segfault with DDF1 metadata and explicit + indication of the raid set [#367686] + ------------------------------------------------------------------- Wed Sep 12 14:44:57 CEST 2007 - mkoenig@suse.de diff --git a/dmraid.spec b/dmraid.spec index b907ab1..5f6a8a9 100644 --- a/dmraid.spec +++ b/dmraid.spec @@ -1,7 +1,7 @@ # # spec file for package dmraid (Version 1.0.0.rc14) # -# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # @@ -10,16 +10,17 @@ # norootforbuild + Name: dmraid BuildRequires: device-mapper-devel zlib-devel Requires: kpartx -URL: http://people.redhat.com/~heinzm/sw/dmraid/src/ +Url: http://people.redhat.com/~heinzm/sw/dmraid/src/ License: GPL v2 or later Group: System/Base -Autoreqprov: on +AutoReqProv: on Summary: A Device-Mapper Software RAID Support Tool Version: 1.0.0.rc14 -Release: 18 +Release: 48 Source: ftp://people.redhat.com/heinzm/sw/dmraid/src/dmraid-%{version}.tar.bz2 Source1: sysconfig.dmraid Source2: boot.dmraid @@ -32,6 +33,7 @@ Patch4: dmraid-1.0.0.rc13-geometry.patch Patch5: dmraid-1.0.0.rc13-jm_termination.patch Patch6: dmraid-1.0.0.rc13-fix_macro.patch Patch7: dmraid-pdc_max_sectors.patch +Patch8: dmraid-1.0.0.rc14-ddf1_segfault.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: %fillup_prereq @@ -71,6 +73,7 @@ Authors: %patch5 -p1 %patch6 -p1 %patch7 -p1 +%patch8 -p1 cp %{SOURCE3} . %build @@ -119,51 +122,54 @@ install -m744 %{SOURCE2} $RPM_BUILD_ROOT/etc/init.d/boot.dmraid /etc/init.d/boot.dmraid %changelog -* Wed Sep 12 2007 - mkoenig@suse.de +* Wed Mar 12 2008 mkoenig@suse.de +- add hack to avoid segfault with DDF1 metadata and explicit + indication of the raid set [#367686] +* Wed Sep 12 2007 mkoenig@suse.de - add quirk for maximum detected device size of some pdc card [#215222] -* Tue Jul 31 2007 - hare@suse.de +* Tue Jul 31 2007 hare@suse.de - dmraid requires kpartx. -* Mon Jul 30 2007 - hare@suse.de +* Mon Jul 30 2007 hare@suse.de - Do not activate partitions from dmraid; udev handles it. -* Tue Jul 10 2007 - mkoenig@suse.de +* Tue Jul 10 2007 mkoenig@suse.de - update to version 1.0.0.rc14 * bugfix release -* Tue Jun 19 2007 - mkoenig@suse.de +* Tue Jun 19 2007 mkoenig@suse.de - use boot.localfs to avoid expansion problem -* Tue Jun 19 2007 - mkoenig@suse.de +* Tue Jun 19 2007 mkoenig@suse.de - Add X-Start-Before: $local_fs dependency -* Thu Mar 29 2007 - mkoenig@suse.de +* Thu Mar 29 2007 mkoenig@suse.de - Add zlib-devel to BuildRequires -* Tue Feb 20 2007 - mkoenig@suse.de +* Tue Feb 20 2007 mkoenig@suse.de - provide boot script [#230708] -* Mon Dec 11 2006 - mkoenig@suse.de +* Mon Dec 11 2006 mkoenig@suse.de - fix jm name string termination problem [#223843] patch: dmraid-1.0.0.rc13-jm_termination.patch - fix min, max macros patch: dmraid-1.0.0.rc13-fix_macro.patch -* Thu Nov 23 2006 - mkoenig@suse.de +* Thu Nov 23 2006 mkoenig@suse.de - fix geometry patch [#222110] -* Mon Nov 20 2006 - mkoenig@suse.de +* Mon Nov 20 2006 mkoenig@suse.de - set geometry of dm device [#222110] -* Thu Nov 09 2006 - mkoenig@suse.de +* Thu Nov 09 2006 mkoenig@suse.de - update to version 1.0.0.rc13 * Fixes for Promise FastTrak and Silicon Image Medley ATARAID * Support for SNIA DDF1 and JBOD -* Thu Sep 14 2006 - ro@suse.de +* Thu Sep 14 2006 ro@suse.de - use device-mapper-devel in BuildRequires -* Tue Aug 29 2006 - hare@suse.de +* Tue Aug 29 2006 hare@suse.de - update to 1.0.0-rc11 - NVidia endianness fixes - Add UUID to device-mapper tables - Fixup '-cc' argument -* Wed Jan 25 2006 - mls@suse.de +* Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires -* Mon Dec 05 2005 - kukuk@suse.de +* Mon Dec 05 2005 kukuk@suse.de - Remove unused klibc-devel from neededforbuild -* Wed Jul 13 2005 - cadaha@suse.de +* Wed Jul 13 2005 cadaha@suse.de - update to 1.0.0-rc8, fix big endian build -* Wed Sep 22 2004 - cadaha@suse.de +* Wed Sep 22 2004 cadaha@suse.de - fix dmraid -rc output for unsupported devices -* Mon Sep 20 2004 - cadaha@suse.de +* Mon Sep 20 2004 cadaha@suse.de - created package