Skip to content

Rename root to stateDir in struct Container#4051

Merged
cyphar merged 2 commits intoopencontainers:mainfrom
kolyshkin:statedir
Oct 4, 2023
Merged

Rename root to stateDir in struct Container#4051
cyphar merged 2 commits intoopencontainers:mainfrom
kolyshkin:statedir

Conversation

@kolyshkin
Copy link
Copy Markdown
Contributor

The name root (or containerRoot) is confusing; one might think it is
the root of container's file system (the directory runc chroots into).

Rename to stateDir for clarity.

@kolyshkin kolyshkin requested a review from lifubang October 3, 2023 20:12
@kolyshkin kolyshkin changed the title Rename Container.root to Container.stateDir Rename root to stateDir in struct Container Oct 3, 2023
@kolyshkin kolyshkin added the kind/refactor refactoring label Oct 3, 2023
@kolyshkin kolyshkin requested a review from thaJeztah October 3, 2023 20:37
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah
Copy link
Copy Markdown
Member

Oh! Linter error;

./libcontainer/init_linux.go:111: syncrhonisation ==> synchronisation
Error: Process completed with exit code 65.

@lifubang lifubang mentioned this pull request Oct 4, 2023
It's only user was recently removed.

Fixes: 0e9a335
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
The name "root" (or "containerRoot") is confusing; one might think it is
the root of container's file system (the directory we chroot into).

Rename to stateDir for clarity.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

still LGTM (ci is happy now)

Copy link
Copy Markdown
Member

@cyphar cyphar left a comment

Choose a reason for hiding this comment

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

lgtm

@cyphar cyphar merged commit ce96144 into opencontainers:main Oct 4, 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