Projects
Eulaceura:Mainline:GA
dmraid
_service:obs_scm:0001-ddf1_lsi_persistent_name....
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0001-ddf1_lsi_persistent_name.patch of Package dmraid
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:
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2