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

mountToRootfs: minor refactor #3787

Merged
merged 1 commit into from
Mar 28, 2023
Merged

Conversation

kolyshkin
Copy link
Contributor

The setRecAttr is only called for "bind" case, as cases end with a return statement. Indeed, recursive mount attributes only make sense for bind mounts.

Move the code to under case "bind" to improve readability. No change in logic.

Fixes: 382eba4
Reported-by: Sebastiaan van Stijn [email protected]

The setRecAttr is only called for "bind" case, as cases end with a
return statement. Indeed, recursive mount attributes only make sense for
bind mounts.

Move the code to under case "bind" to improve readability. No change in
logic.

Fixes: 382eba4
Reported-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Kir Kolyshkin <[email protected]>
@kolyshkin
Copy link
Contributor Author

@thaJeztah PTAL

@AkihiroSuda AkihiroSuda merged commit 2b221a6 into opencontainers:main Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants