Skip to content

Ignore filesystems flagged as MNT_IGNORE. - #2227

Merged
SuperQ merged 2 commits into
prometheus:masterfrom
lapo-luchini:gh2152
Dec 1, 2021
Merged

SuperQ merged 2 commits into
prometheus:masterfrom
lapo-luchini:gh2152

Conversation

@lapo-luchini

Copy link
Copy Markdown
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
Copy Markdown
Member

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

@discordianfish discordianfish left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor Author

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

Done!

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

@SuperQ SuperQ left a comment

Copy link
Copy Markdown
Member

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

SuperQ commented Dec 1, 2021

Copy link
Copy Markdown
Member

@discordianfish Would you call this a [BUGFIX]?

@discordianfish

Copy link
Copy Markdown
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