Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[collectd 6] disk: migration to v6.0 #4075

Merged
merged 6 commits into from
Feb 11, 2023

Conversation

hnez
Copy link
Contributor

@hnez hnez commented Jan 11, 2023

ChangeLog: disk plugin: migration to v6.0

This PR takes up the work by @manuelluis in #3809, rebases it on top of the most recent collectd-6-branch and cherry-picks the two commits affecting this plugin from the main branch that were added in the meantime (#3967 and #4025).

This should bring the plugin to feature parity with the main branch.

Issue #3620 tracks the disk plugin migration progress. As far as I can tell this PR should tick the Update the exec plugin to produce a metric_family_t check mark.

manuelluis and others added 4 commits December 13, 2022 09:37
git cherry-pick f703a4a ("disk: add utilization (collectd#3967)")
from the collectd 5 branch on top of the collectd 6 version of the plugin.

Original commit message:

* added disk utilization

* fix disk utilization

* fix interval back to ms
…ated in favor of `IOMainPort`"

git cherry-pick 2711ebe7d671c ("In macOS 12, `IOMasterPort` is deprecated in favor of `IOMainPort`")
from the collectd 5 branch on top of the collectd 6 version of the plugin.

Original commit message:

In macOS 12, `IOMasterPort` is deprecated in favor of `IOMainPort`

```
src/battery.c:250:7: error: 'kIOMasterPortDefault' is deprecated: first deprecated in macOS 12.0 [-Werror,-Wdeprecated-declarations]
      kIOMasterPortDefault, IOServiceNameMatching("battery"), &iterator);
      ^~~~~~~~~~~~~~~~~~~~
      kIOMainPortDefault
```
@eero-t
Copy link
Contributor

eero-t commented Jan 11, 2023

I didn't read through this so carefully, but couldn't correct types be used for the variables instead of casting them?

(Add also clang-format commit.)

@hnez
Copy link
Contributor Author

hnez commented Jan 30, 2023

Hi @eero-t, I've been busy with other things/on vacation, but I am back at work now and will look into it.

@mrunge mrunge merged commit 409b687 into collectd:collectd-6.0 Feb 11, 2023
@mrunge
Copy link
Member

mrunge commented Feb 11, 2023

thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants