Skip to content

Not return error when rootfs already exists#3299

Merged
estesp merged 1 commit intocontainerd:masterfrom
Random-Liu:use-mkdirall
May 23, 2019
Merged

Not return error when rootfs already exists#3299
estesp merged 1 commit intocontainerd:masterfrom
Random-Liu:use-mkdirall

Conversation

@Random-Liu
Copy link
Copy Markdown
Member

@Random-Liu Random-Liu commented May 22, 2019

Not return error when rootfs already exists.

If we use the new containerd-shim with containerd 1.2, it will break. I know that we don't have guarantee for that kind of version skew, but it is still better not to break that when possible.

$ sudo ctr run --rm --tty docker.io/library/alpine:latest test
ctr: mkdir /run/containerd/io.containerd.runtime.v1.linux/default/test/rootfs: file exists: already exists

Signed-off-by: Lantao Liu [email protected]

@Random-Liu Random-Liu changed the title Use MkdirAll to create rootfs. Not return error when rootfs already exists May 22, 2019
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 22, 2019

Build succeeded.

@codecov-io
Copy link
Copy Markdown

codecov-io commented May 22, 2019

Codecov Report

Merging #3299 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #3299   +/-   ##
======================================
  Coverage    44.6%   44.6%           
======================================
  Files         112     112           
  Lines       12180   12180           
======================================
  Hits         5433    5433           
  Misses       5913    5913           
  Partials      834     834
Flag Coverage Δ
#linux 48.49% <ø> (ø) ⬆️
#windows 39.87% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 25daa73...48b81e8. Read the comment docs.

@codecov-io
Copy link
Copy Markdown

codecov-io commented May 22, 2019

Codecov Report

Merging #3299 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #3299   +/-   ##
======================================
  Coverage    44.6%   44.6%           
======================================
  Files         112     112           
  Lines       12180   12180           
======================================
  Hits         5433    5433           
  Misses       5913    5913           
  Partials      834     834
Flag Coverage Δ
#linux 48.49% <ø> (ø) ⬆️
#windows 39.89% <ø> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 25daa73...48b81e8. Read the comment docs.

@crosbymichael
Copy link
Copy Markdown
Member

LGTM

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@estesp estesp merged commit 01191a2 into containerd:master May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants