From 63e454030901c19436e0d64b03c72879ae88079b Mon Sep 17 00:00:00 2001 From: stevegilbert23 Date: Wed, 5 Feb 2025 17:23:37 -0500 Subject: [PATCH] When UseSerial is enabled, allow configured ignored disk names to be copied to the serial ignore list for devices without serials. --- src/smart.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/smart.c b/src/smart.c index 62d896e4c..a1a0ed12c 100644 --- a/src/smart.c +++ b/src/smart.c @@ -150,7 +150,10 @@ static int create_ignorelist_by_serial(ignorelist_t *il) { if (name[0] == '/') name++; - if (ignorelist_match(ignorelist, name) == 0 && serial != NULL) { + if (ignorelist_match(ignorelist, name) == 0) { + // Allow ignored devices with no serial to carry over to serial ignore list + if (!serial) + serial = name; ignorelist_add(ignorelist_by_serial, serial); } } -- 2.39.5