-
Notifications
You must be signed in to change notification settings - Fork 44
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
mountinfo: deprecate PidMountInfo #47
Conversation
wrt naming; its also worth considering to take the package name itself into account, eg
(typing on my phone, so just a quick blurb) |
I didn't want to rename everything :) as we'll have to convert all users and/or deprecate stuff. But it's a good idea to make names shorter. Let me think about it. |
Containerd uses That said; have we checked if this function is used? ISTR in containerd it was not in use (need to double check), not sure if it's used in runc? |
One other way to proceed is to deprecate |
I think I've seen it used once but don't remember where it was :-\ For now I guess what I said above is the best way to go |
Ah, here's the (only) user I found: DataDog/datadog-agent@406d988 |
Function PidMountInfo is not named correctly (it should be PID not Pid, and we already have mountinfo in the package name so it's tautological), and can not accept FilterFunc. Besides, there are not too many users of this function (I was only able to found one, see [1]) and users can switch to GetMountsFromReader. Depreate this function. The plan is to remove it before v1.0. [1] DataDog/datadog-agent@406d98801434dedc87 Signed-off-by: Kir Kolyshkin <[email protected]>
@thaJeztah I've change this PR to only deprecate PidMountInfo, no longer introducing a replacement for it. PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Function PidMountInfo is not named correctly (it should be PID not Pid,
and we already have mountinfo in the package name so it's tautological),
and can not accept FilterFunc.
Besides, there are not too many users of this function (I was only able
to found one, see [1]) and users can switch to GetMountsFromReader.
Depreate this function. The plan is to remove it before v1.0.
[1] DataDog/datadog-agent@406d988