rpms/dmraid/devel ddf1_lsi_persistent_name.patch,NONE,1.1
Heinz Mauelshagen
mauelsha at fedoraproject.org
Thu Oct 15 19:36:19 UTC 2009
- Previous message (by thread): rpms/dmraid/devel dmraid.spec,1.107,1.108 sources,1.26,1.27
- Next message (by thread): rpms/python-ssl/devel README.ssl, NONE, 1.1 import.log, NONE, 1.1 python-ssl-64bit.patch, NONE, 1.1 python-ssl.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mauelsha
Update of /cvs/pkgs/rpms/dmraid/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25313
Added Files:
ddf1_lsi_persistent_name.patch
Log Message:
ddf1_lsi_persistent_name.patch:
ddf1.c | 10 ++++++++++
1 file changed, 10 insertions(+)
--- NEW FILE ddf1_lsi_persistent_name.patch ---
diff --git a/lib/format/ddf/ddf1.c.lsi_name b/lib/format/ddf/ddf1.c
index 05b550b..c8e484b 100644
--- a/lib/format/ddf/ddf1.c
+++ b/lib/format/ddf/ddf1.c
@@ -696,6 +696,16 @@ name(struct lib_context *lc, struct ddf1 *ddf1, struct raid_dev *rd)
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:
- Previous message (by thread): rpms/dmraid/devel dmraid.spec,1.107,1.108 sources,1.26,1.27
- Next message (by thread): rpms/python-ssl/devel README.ssl, NONE, 1.1 import.log, NONE, 1.1 python-ssl-64bit.patch, NONE, 1.1 python-ssl.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list