Adding upstream version 4.2+20230901.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
14fbe53fb1
commit
f48db6685a
15 changed files with 418 additions and 196 deletions
|
@ -2364,8 +2364,7 @@ static int init_super_ddf(struct supertype *st,
|
|||
* Remaining 16 are serial number.... maybe a hostname would do?
|
||||
*/
|
||||
memcpy(ddf->controller.guid, T10, sizeof(T10));
|
||||
gethostname(hostname, sizeof(hostname));
|
||||
hostname[sizeof(hostname) - 1] = 0;
|
||||
s_gethostname(hostname, sizeof(hostname));
|
||||
hostlen = strlen(hostname);
|
||||
memcpy(ddf->controller.guid + 24 - hostlen, hostname, hostlen);
|
||||
for (i = strlen(T10) ; i+hostlen < 24; i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue