Skip to content

Add cio.Load for loading io set#2422

Merged
crosbymichael merged 1 commit intocontainerd:masterfrom
crosbymichael:ctr-delete
Jun 27, 2018
Merged

Add cio.Load for loading io set#2422
crosbymichael merged 1 commit intocontainerd:masterfrom
crosbymichael:ctr-delete

Conversation

@crosbymichael
Copy link
Copy Markdown
Member

This adds a Load Opt for cio to load a tasks io/fifos without
attaching or starting the copy routines.

It adds the load method in ctr by default so that fifos or other IO
are removed from disk on delete methods inbetween command runs. It is
not the default for all task loads for backwards compat. and a user may
want to keep io around to reuse or if log files are used.

Fixes #2421

Signed-off-by: Michael Crosby [email protected]

@codecov-io
Copy link
Copy Markdown

codecov-io commented Jun 26, 2018

Codecov Report

Merging #2422 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2422      +/-   ##
=========================================
- Coverage   45.03%     45%   -0.03%     
=========================================
  Files          92      92              
  Lines        9407    9412       +5     
=========================================
  Hits         4236    4236              
- Misses       4488    4493       +5     
  Partials      683     683
Flag Coverage Δ
#linux 49.23% <0%> (-0.04%) ⬇️
#windows 41.3% <ø> (ø) ⬆️
Impacted Files Coverage Δ
cio/io.go 33.33% <0%> (-2.11%) ⬇️

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 1ac546b...fdceb13. Read the comment docs.

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; minor nit with comment that needs slight wording fix

Comment thread cio/io.go Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

minor nit: the "as to deleted" part of this comment may be missing a word/or needs a slight reword for clarity?

This adds a `Load` Opt for cio to load a tasks io/fifos without
attaching or starting the copy routines.

It adds the load method in `ctr` by default so that fifos or other IO
are removed from disk on delete methods inbetween command runs.  It is
not the default for all task loads for backwards compat. and a user may
want to keep io around to reuse or if log files are used.

Fixes containerd#2421

Signed-off-by: Michael Crosby <[email protected]>
@ehazlett
Copy link
Copy Markdown
Member

LGTM

@crosbymichael crosbymichael merged commit ca20431 into containerd:master Jun 27, 2018
@crosbymichael crosbymichael deleted the ctr-delete branch June 27, 2018 12:46
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.

5 participants