]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Revert "collectd: Use libstatgrab for reading disk stats"
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 8 Jun 2021 14:05:57 +0000 (14:05 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 8 Jun 2021 14:08:44 +0000 (14:08 +0000)
This reverts commit 86beff5f75a88cebe62f6d629cce3ae3768e231b.

This patch breaks reading statistics on systems running a 4.14 kernel.
It seems like it is not dependant on the kernel, though.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/collectd
src/patches/collectd-4.10-disk-plugin-fields.patch [deleted file]

index 5e96ddbb38f9cc9c55863fb1fa33dddb9e04f0d9..36b5078686054f4481d3ef84905a4df166d6345b 100644 (file)
@@ -107,7 +107,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && patch -p1 -i $(DIR_SRC)/src/patches/collectd-4.10.9-xfs-compile-fix.patch
        cd $(DIR_APP) && patch -p1 -i $(DIR_SRC)/src/patches/collectd-4.10-libiptc-build-fixes.patch
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/collectd-4.10.9-remove-checks-for-SENSORS_API_VERSION-upper-limit.patch
-       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/collectd-4.10-disk-plugin-fields.patch
        cd $(DIR_APP) && autoupdate -v configure.in
        cd $(DIR_APP) && autoreconf -vfi
        cd $(DIR_APP)/libltdl && autoreconf -vfi
diff --git a/src/patches/collectd-4.10-disk-plugin-fields.patch b/src/patches/collectd-4.10-disk-plugin-fields.patch
deleted file mode 100644 (file)
index 4663d9a..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/src/disk.c b/src/disk.c
-index 4a78f1bd..c6f9e4bd 100644
---- a/src/disk.c
-+++ b/src/disk.c
-@@ -428,7 +428,7 @@ static int disk_read (void)
-       IOObjectRelease (disk_list);
- /* #endif HAVE_IOKIT_IOKITLIB_H */
--#elif KERNEL_LINUX
-+#elif 0
-       FILE *fh;
-       char buffer[1024];
-