Hello community, here is the log from the commit of package dmraid checked in at Wed Sep 12 16:47:21 CEST 2007. -------- --- dmraid/dmraid.changes 2007-07-31 14:42:39.000000000 +0200 +++ /mounts/work_src_done/STABLE/dmraid/dmraid.changes 2007-09-12 14:46:07.000000000 +0200 @@ -1,0 +2,6 @@ +Wed Sep 12 14:44:57 CEST 2007 - mkoenig@suse.de + +- add quirk for maximum detected device size of some pdc card + [#215222] + +------------------------------------------------------------------- New: ---- dmraid-pdc_max_sectors.patch README.SuSE ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dmraid.spec ++++++ --- /var/tmp/diff_new_pack.bI7926/_old 2007-09-12 16:45:24.000000000 +0200 +++ /var/tmp/diff_new_pack.bI7926/_new 2007-09-12 16:45:24.000000000 +0200 @@ -19,10 +19,11 @@ Autoreqprov: on Summary: A Device-Mapper Software RAID Support Tool Version: 1.0.0.rc14 -Release: 9 +Release: 18 Source: ftp://people.redhat.com/heinzm/sw/dmraid/src/dmraid-%{version}.tar.bz2 Source1: sysconfig.dmraid Source2: boot.dmraid +Source3: README.SuSE Patch0: dmraid_fixup_paths3.diff Patch1: dmraid-add_uuid.patch Patch2: dmraid_fixup_nvidia.diff @@ -30,6 +31,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 BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: %fillup_prereq @@ -68,6 +70,8 @@ %patch4 -p1 %patch5 -p1 %patch6 -p1 +%patch7 -p1 +cp %{SOURCE3} . %build #rm -f aclocal.m4 @@ -110,11 +114,14 @@ #%{_libdir}/libdmraid.so /sbin/dmraid %{_mandir}/man8/* -%doc LICENSE LICENSE_GPL LICENSE_LGPL README TODO doc/* +%doc LICENSE LICENSE_GPL LICENSE_LGPL README README.SuSE TODO doc/* /var/adm/fillup-templates/sysconfig.dmraid /etc/init.d/boot.dmraid %changelog +* 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 - dmraid requires kpartx. * Mon Jul 30 2007 - hare@suse.de ++++++ dmraid-pdc_max_sectors.patch ++++++ Index: 1.0.0.rc14/lib/format/ataraid/pdc.c =================================================================== --- 1.0.0.rc14.orig/lib/format/ataraid/pdc.c +++ 1.0.0.rc14/lib/format/ataraid/pdc.c @@ -155,6 +155,21 @@ static void *pdc_read_metadata(struct li } } + /* Some pdc card detect only PDC_MAX_SECTOR sectors, even + * if the disk is bigger, this prevents dmraid from discovering + * the metadata. This quirk searches for metadata at the + * sector PDC_MAX_SECTOR + */ + if (di->sectors >= PDC_MAX_SECTOR) { + if (read_file(lc, handler, di->path, ret, sizeof(*ret), + PDC_MAX_SECTOR << 9) && + !strncmp((const char*) ret->promise_id, PDC_MAGIC, + PDC_ID_LENGTH)) { + info->u32 = PDC_MAX_SECTOR; + return (void*) ret; + } + } + dbg_free(ret); } Index: 1.0.0.rc14/lib/format/ataraid/pdc.h =================================================================== --- 1.0.0.rc14.orig/lib/format/ataraid/pdc.h +++ 1.0.0.rc14/lib/format/ataraid/pdc.h @@ -16,6 +16,9 @@ #define PDC_CONFIGOFFSETS 63,255,256,16,399,735 #define PDC_DATAOFFSET 0 +/* maximum device size (sectors) which can be detected by some pdc card */ +#define PDC_MAX_SECTOR 268435377UL + /* Ondisk metadata for Promise Fastrack */ struct pdc { #define PDC_ID_LENGTH 24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de