mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
libct: rename root to stateDir in struct Container
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>
This commit is contained in:
committed by
Aleksa Sarai
parent
c89faacc13
commit
efbebb39b5
@@ -233,8 +233,8 @@ func TestGetContainerStateAfterUpdate(t *testing.T) {
|
||||
}
|
||||
|
||||
container := &Container{
|
||||
root: t.TempDir(),
|
||||
id: "myid",
|
||||
stateDir: t.TempDir(),
|
||||
id: "myid",
|
||||
config: &configs.Config{
|
||||
Namespaces: []configs.Namespace{
|
||||
{Type: configs.NEWPID},
|
||||
|
||||
Reference in New Issue
Block a user