]> git.ipfire.org Git - thirdparty/collectd.git/commit
Hugepages plugin skips reading write-only file
authorYadnesh Kulkarni <ykulkarn@redhat.com>
Wed, 22 Feb 2023 12:27:55 +0000 (17:57 +0530)
committerMatthias Runge <mrunge@matthias-runge.de>
Thu, 23 Mar 2023 09:22:22 +0000 (10:22 +0100)
commit22e19275aa87f5fdf1e4cfe0100eaa3d0d97e8cf
tree3e4e7563a19eadd48b9b0969430d73b3da8d8a99
parentc1e5abc0387f82c24178d6d08483a8eedc441394
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