collectd: remove not needed fix
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 15 Mar 2022 13:52:05 +0000 (14:52 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 17 Mar 2022 13:11:41 +0000 (14:11 +0100)
This was not a real fix but a workaround. It is no longer clear to me
why this was necessary. Deleting the patch restores the upstream
behaviour of the collected for the smart plugin. I have tested it and on
my system the hard disk to be monitored is recognised.

root@system ~ # cat /sys/class/block/sda/uevent
MAJOR=8
MINOR=0
DEVNAME=sda
DEVTYPE=disk

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
utils/collectd/patches/933-fix-smart-detection.patch [deleted file]

diff --git a/utils/collectd/patches/933-fix-smart-detection.patch b/utils/collectd/patches/933-fix-smart-detection.patch
deleted file mode 100644 (file)
index 70250d6..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/src/smart.c
-+++ b/src/smart.c
-@@ -610,7 +610,6 @@ static int smart_read(void) {
-     return -1;
-   }
-   udev_enumerate_add_match_subsystem(enumerate, "block");
--  udev_enumerate_add_match_property(enumerate, "DEVTYPE", "disk");
-   udev_enumerate_scan_devices(enumerate);
-   devices = udev_enumerate_get_list_entry(enumerate);
-   if (devices == NULL) {