git: 5286b96c56ff - main - md: Use a larger buffer for the ident string
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 25 Jun 2025 22:31:09 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=5286b96c56ff5aa3c1cee824ab8564f0ffffc381
commit 5286b96c56ff5aa3c1cee824ab8564f0ffffc381
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-06-25 21:12:33 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-06-25 21:20:45 +0000
md: Use a larger buffer for the ident string
With the old size, the string could easily be truncated, resulting in
non-unique identifiers.
PR: 287679
Reported by: Phil Krylov <phil@krylov.eu>
Reviewed by: kib
MFC after: 2 weeks
---
sys/dev/md/md.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index 5d4f91d05917..800684e9e63b 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -256,7 +256,7 @@ struct md_s {
unsigned opencount;
unsigned fwheads;
unsigned fwsectors;
- char ident[32];
+ char ident[DISK_IDENT_SIZE];
unsigned flags;
char name[20];
struct proc *procp;