Skip to content

mountToRootfs: minor refactor#3787

Merged
AkihiroSuda merged 1 commit intoopencontainers:mainfrom
kolyshkin:rec-fixup
Mar 28, 2023
Merged

mountToRootfs: minor refactor#3787
AkihiroSuda merged 1 commit intoopencontainers:mainfrom
kolyshkin:rec-fixup

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 github@gone.nl

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 <github@gone.nl>
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@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