Skip to content

[release/1.3 backport] snapshots/devmapper: suspend a device to avoid data corruption #4416

Merged
estesp merged 2 commits intocontainerd:release/1.3from
kzys:backport-4374
Jul 28, 2020
Merged

[release/1.3 backport] snapshots/devmapper: suspend a device to avoid data corruption #4416
estesp merged 2 commits intocontainerd:release/1.3from
kzys:backport-4374

Conversation

@kzys
Copy link
Copy Markdown
Member

@kzys kzys commented Jul 22, 2020

Backport of #4374

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 22, 2020

Build succeeded.

@kzys
Copy link
Copy Markdown
Member Author

kzys commented Jul 22, 2020

Regarding the CI failure, we need to merge #4361 first to fix release/1.3.

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

Kazuyoshi Kato added 2 commits July 28, 2020 11:43
According to https://github.com/torvalds/linux/blob/v5.7/Documentation/admin-guide/device-mapper/thin-provisioning.rst#internal-snapshots;

> If the origin device that you wish to snapshot is active, you
> must suspend it before creating the snapshot to avoid corruption.

However the devmapper snapshotter was not doing that.

Signed-off-by: Kazuyoshi Kato <[email protected]>
The function is required for the back-ported commit (5189072f).

Signed-off-by: Kazuyoshi Kato <[email protected]>
@kzys
Copy link
Copy Markdown
Member Author

kzys commented Jul 28, 2020

Rebased the branch against release/1.3. Hopefully this fixes the CI errors.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 28, 2020

Build succeeded.

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 2a76bb8 into containerd:release/1.3 Jul 28, 2020
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.

3 participants