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

Ignore filesystems flagged as MNT_IGNORE. #2227

Merged
merged 2 commits into from
Dec 1, 2021

Conversation

lapo-luchini
Copy link
Contributor

Closes #2152.

I noticed that MNT_READONLY and MNT_NOWAIT are available under unix dependency as well, is there a reason they were defined as local constants instead of relying on the external library?

In this PR I made the shortest change possible and used the library for the new flag, but if you'd like me to use this PR to change those two as well (or, on the opposite, define also this third one as local constant), tell me.

@lapo-luchini lapo-luchini changed the title Ignore filesystems flagges as MNT_IGNORE. Ignore filesystems flagged as MNT_IGNORE. Nov 27, 2021
@discordianfish
Copy link
Member

Probably historical reasons. Feel free to change them to use the unix package as well. But either way, this LGTM!

Copy link
Member

@discordianfish discordianfish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@lapo-luchini
Copy link
Contributor Author

Feel free to change them to use the unix package as well.

Done!

I'd say this PR is ready (IMHO).

Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks

We should probably also do the same thing in filesystem_bsd.go.

@SuperQ
Copy link
Member

SuperQ commented Dec 1, 2021

@discordianfish Would you call this a [BUGFIX]?

@discordianfish
Copy link
Member

Yeah bugfix sounds good but change would be fine as well. Whatever you prefer!

@SuperQ SuperQ merged commit 3136901 into prometheus:master Dec 1, 2021
SuperQ added a commit that referenced this pull request Dec 1, 2021
* [BUGFIX] Handle nil CPU thermal power status on M1 #2218
* [BUGFIX] bsd: Ignore filesystems flagged as MNT_IGNORE. #2227
* [BUGFIX] Sanitize UTF-8 in dmi collector #2229

Signed-off-by: Ben Kochie <[email protected]>
@SuperQ SuperQ mentioned this pull request Dec 1, 2021
@lapo-luchini lapo-luchini deleted the gh2152 branch December 1, 2021 14:39
SuperQ added a commit that referenced this pull request Dec 4, 2021
* [BUGFIX] Handle nil CPU thermal power status on M1 #2218
* [BUGFIX] bsd: Ignore filesystems flagged as MNT_IGNORE. #2227
* [BUGFIX] Sanitize UTF-8 in dmi collector #2229

Signed-off-by: Ben Kochie <[email protected]>
SuperQ pushed a commit that referenced this pull request Dec 4, 2021
* Ignore filesystems flagges as MNT_IGNORE.
Closes #2152.

Signed-off-by: Lapo Luchini <[email protected]>
SuperQ added a commit that referenced this pull request Dec 4, 2021
* [BUGFIX] Handle nil CPU thermal power status on M1 #2218
* [BUGFIX] bsd: Ignore filesystems flagged as MNT_IGNORE. #2227
* [BUGFIX] Sanitize UTF-8 in dmi collector #2229

Signed-off-by: Ben Kochie <[email protected]>
@SuperQ SuperQ mentioned this pull request Dec 4, 2021
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this pull request Apr 9, 2024
* Ignore filesystems flagges as MNT_IGNORE.
Closes prometheus#2152.

Signed-off-by: Lapo Luchini <[email protected]>
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this pull request Apr 9, 2024
* [BUGFIX] Handle nil CPU thermal power status on M1 prometheus#2218
* [BUGFIX] bsd: Ignore filesystems flagged as MNT_IGNORE. prometheus#2227
* [BUGFIX] Sanitize UTF-8 in dmi collector prometheus#2229

Signed-off-by: Ben Kochie <[email protected]>
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this pull request Apr 9, 2024
* Ignore filesystems flagges as MNT_IGNORE.
Closes prometheus#2152.

Signed-off-by: Lapo Luchini <[email protected]>
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this pull request Apr 9, 2024
* [BUGFIX] Handle nil CPU thermal power status on M1 prometheus#2218
* [BUGFIX] bsd: Ignore filesystems flagged as MNT_IGNORE. prometheus#2227
* [BUGFIX] Sanitize UTF-8 in dmi collector prometheus#2229

Signed-off-by: Ben Kochie <[email protected]>
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.

ZFS snapshots showing up among filesystems
3 participants