[Dmraid-debian-commits] [SCM] Maintenance of the dmraid package branch, master, updated. debian/1.0.0.rc16-1-2-g8418d6b

Giuseppe Iuculano iuculano at debian.org
Thu Nov 26 10:36:37 UTC 2009


The following commit has been merged in the master branch:
commit 8418d6b7c4108cdb2cb5f93fef48125a9c53bf8b
Author: Giuseppe Iuculano <iuculano at debian.org>
Date:   Thu Nov 26 09:09:53 2009 +0100

    Because the LSI bios changes the timestamp in the metadata on every boot, neutralize it in order to allow for persistent names.

diff --git a/debian/patches/19_ddf1_lsi_persistent_name.patch b/debian/patches/19_ddf1_lsi_persistent_name.patch
new file mode 100644
index 0000000..e903d5b
--- /dev/null
+++ b/debian/patches/19_ddf1_lsi_persistent_name.patch
@@ -0,0 +1,20 @@
+Using a dummy string for the timestamp in the LSI metadata
+--- a/1.0.0.rc16/lib/format/ddf/ddf1.c
++++ b/1.0.0.rc16/lib/format/ddf/ddf1.c
+@@ -696,6 +696,16 @@ name(struct lib_context *lc, struct ddf1
+ 			sprintf(b, "%02x%02x%02x%02x",
+ 				vd->guid[i], vd->guid[i + 1],
+ 				vd->guid[i + 2], vd->guid[i + 3]);
++
++		/*
++		 * Because the LSI bios changes the timestamp in the
++		 * metadata on every boot, we have to neutralize it
++		 * in order to allow for persistent names.
++		 *
++		 * Using a dummy string "47114711" for that.
++		 */
++		if (!strncmp((char *) vd->guid, "LSI", 3))
++			strncpy(buf + prefix + 32, "47114711", 8);
+ 	}
+ 
+ out:
diff --git a/debian/patches/series b/debian/patches/series
index ac317a8..1835ab8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -8,3 +8,4 @@
 17_isw-probe-hpa.patch
 15_activate_multiple_raid_sets.patch
 18_pdc_raid10_failure..patch
+19_ddf1_lsi_persistent_name.patch

-- 
Maintenance of the dmraid package



More information about the Dmraid-debian-commits mailing list