]> 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>
Mon, 27 Feb 2023 12:44:44 +0000 (13:44 +0100)
commit4cebbfc1ed4b44644d981df996a8ca941e38e8a1
tree25cf0dc023ece28d006cab7217884a9b91288235
parentff65eaa019496ab7ebdab4c68ac19cf7f50988cf
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