[Dmraid-debian-commits] [SCM] Maintenance of the dmraid package branch, master, updated. debian/1.0.0.rc15-1.exp4-2-gdb69b2c
Giuseppe Iuculano
giuseppe at iuculano.it
Mon Jan 12 10:41:50 UTC 2009
The following commit has been merged in the master branch:
commit f23f890966ff9da99a902a3ddf719178b331146f
Author: Giuseppe Iuculano <giuseppe at iuculano.it>
Date: Sat Dec 27 14:43:33 2008 +0100
debian/patches: Deleted old patch 08_promise-metadata-fixes.dpatch
diff --git a/debian/patches/08_promise-metadata-fixes.dpatch b/debian/patches/08_promise-metadata-fixes.dpatch
deleted file mode 100755
index 06bc8b7..0000000
--- a/debian/patches/08_promise-metadata-fixes.dpatch
+++ /dev/null
@@ -1,45 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 08_promise-metadata-fixes.dpatch by Luke Yelavich <themuso at ubuntu.com>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: Promise metadata fixes.
-
- at DPATCH@
-diff -urNad dmraid-1.0.0.rc15-1ubuntu1~/1.0.0.rc15/lib/format/ataraid/pdc.c dmraid-1.0.0.rc15-1ubuntu1/1.0.0.rc15/lib/format/ataraid/pdc.c
---- dmraid-1.0.0.rc15-1ubuntu1~/1.0.0.rc15/lib/format/ataraid/pdc.c 2006-10-02 21:19:33.000000000 +1000
-+++ dmraid-1.0.0.rc15-1ubuntu1/1.0.0.rc15/lib/format/ataraid/pdc.c 2008-07-08 14:29:10.000000000 +1000
-@@ -155,6 +155,21 @@
- }
- }
-
-+ /* 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);
- }
-
-diff -urNad dmraid-1.0.0.rc15-1ubuntu1~/1.0.0.rc15/lib/format/ataraid/pdc.h dmraid-1.0.0.rc15-1ubuntu1/1.0.0.rc15/lib/format/ataraid/pdc.h
---- dmraid-1.0.0.rc15-1ubuntu1~/1.0.0.rc15/lib/format/ataraid/pdc.h 2006-02-11 02:01:42.000000000 +1100
-+++ dmraid-1.0.0.rc15-1ubuntu1/1.0.0.rc15/lib/format/ataraid/pdc.h 2008-07-08 14:29:12.000000000 +1000
-@@ -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
--
Maintenance of the dmraid package
More information about the Dmraid-debian-commits
mailing list