Blame SOURCES/ddf1_lsi_persistent_name.patch
|
|
325406 |
diff --git a/lib/format/ddf/ddf1.c.lsi_name b/lib/format/ddf/ddf1.c
|
|
|
325406 |
index 05b550b..c8e484b 100644
|
|
|
325406 |
--- a/lib/format/ddf/ddf1.c
|
|
|
325406 |
+++ b/lib/format/ddf/ddf1.c
|
|
|
325406 |
@@ -696,6 +696,16 @@ name(struct lib_context *lc, struct ddf1 *ddf1, struct raid_dev *rd)
|
|
|
325406 |
sprintf(b, "%02x%02x%02x%02x",
|
|
|
325406 |
vd->guid[i], vd->guid[i + 1],
|
|
|
325406 |
vd->guid[i + 2], vd->guid[i + 3]);
|
|
|
325406 |
+
|
|
|
325406 |
+ /*
|
|
|
325406 |
+ * Because the LSI bios changes the timestamp in the
|
|
|
325406 |
+ * metadata on every boot, we have to neutralize it
|
|
|
325406 |
+ * in order to allow for persistent names.
|
|
|
325406 |
+ *
|
|
|
325406 |
+ * Using a dummy string "47114711" for that.
|
|
|
325406 |
+ */
|
|
|
325406 |
+ if (!strncmp((char *) vd->guid, "LSI", 3))
|
|
|
325406 |
+ strncpy(buf + prefix + 32, "47114711", 8);
|
|
|
325406 |
}
|
|
|
325406 |
|
|
|
325406 |
out:
|