Skip to content

[release/1.2] test/snapshots: umount before committing snapshot#3413

Merged
crosbymichael merged 1 commit intocontainerd:release/1.2from
crosbymichael:snapshot-test
Jul 15, 2019
Merged

[release/1.2] test/snapshots: umount before committing snapshot#3413
crosbymichael merged 1 commit intocontainerd:release/1.2from
crosbymichael:snapshot-test

Conversation

@crosbymichael
Copy link
Copy Markdown
Member

For block device like devicemapper, umount before committing
active snapshot can sync data onto disk. Otherewise:

  1. deactivating a block device in use will fail or IO error
    when forced;
  2. new snapshot on it will not catch the data not laid on disk yet.

Ref: #3405

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

For block device like devicemapper, umount before committing
active snapshot can sync data onto disk. Otherewise:

1. deactivating a block device in use will fail or IO error
when forced;
2. new snapshot on it will not catch the data not laid on disk yet.

Signed-off-by: Eric Ren <[email protected]>
Signed-off-by: Michael Crosby <[email protected]>
@crosbymichael crosbymichael added this to the 1.2.8 milestone Jul 15, 2019
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

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #3413 into release/1.2 will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##           release/1.2    #3413   +/-   ##
============================================
  Coverage        43.66%   43.66%           
============================================
  Files              101      101           
  Lines            10816    10816           
============================================
  Hits              4723     4723           
  Misses            5357     5357           
  Partials           736      736
Flag Coverage Δ
#linux 47.25% <ø> (ø) ⬆️
#windows 40.78% <ø> (ø) ⬆️

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 e12b707...46920a6. Read the comment docs.

Copy link
Copy Markdown
Member

@mxpv mxpv left a comment

Choose a reason for hiding this comment

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

LGTM

@crosbymichael crosbymichael merged commit ef9f3a5 into containerd:release/1.2 Jul 15, 2019
@crosbymichael crosbymichael deleted the snapshot-test branch July 15, 2019 17:00
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