]> git.ipfire.org Git - thirdparty/collectd.git/commit
Hugepages plugin skips reading write-only file collectd-5.13
authorYadnesh Kulkarni <ykulkarn@redhat.com>
Wed, 22 Feb 2023 12:27:55 +0000 (17:57 +0530)
committerMatthias Runge <mrunge@matthias-runge.de>
Fri, 24 Mar 2023 10:27:41 +0000 (11:27 +0100)
commit876ce9f82e9fe65d5b02d4e6868b6dca72c2b0ef
treeeec4dd1de0c2b65054fe01a928ee10bb5128364f
parent71d2846b5048fa33b4c3cc7421c6c1b7ba5ead69
Hugepages plugin skips reading write-only file

Since 'demote' is a write-only file do not attempt to
to read it. This also prevents the plugin from generating
incessant logs about the failure to open it.

Fixes: #3993
https://docs.kernel.org/admin-guide/mm/hugetlbpage.html
src/hugepages.c