Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/0.11] make sure to close files in dmverity-vhd tool (#1770) #1946

Merged

Conversation

anmaxvl
Copy link
Contributor

@anmaxvl anmaxvl commented Oct 23, 2023

Update release branch to include some fixes for dmverity-vhd tool:

Currently we're not closing output VHD files and read closers
when creating layer VHDs with dmverity-vhd tool.

Refactor error wrapping.

Signed-off-by: Maksim An <maksiman@microsoft.com>
(cherry picked from commit 567f6bd)
@anmaxvl anmaxvl requested a review from a team as a code owner October 23, 2023 19:43
Copy link
Contributor

@helsaawy helsaawy left a comment

Choose a reason for hiding this comment

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

minor comments, LGTM overall

cmd/dmverity-vhd/main.go Show resolved Hide resolved
cmd/dmverity-vhd/main.go Outdated Show resolved Hide resolved
@anmaxvl
Copy link
Contributor Author

anmaxvl commented Oct 26, 2023

minor comments, LGTM overall

opened another PR to address comments: #1948

I'll cherry pick that one here as well.

@helsaawy
Copy link
Contributor

minor comments, LGTM overall

opened another PR to address comments: #1948

I'll cherry pick that one here as well.

i totally missed that this was a merge into release/0.11 and not main lol

Use `errors` package instead of the `github.com/pkg/errors`.

`createVHD` accepts layer number to avoid calling `layer.DiffID()`
twice.

Signed-off-by: Maksim An <maksiman@microsoft.com>
(cherry picked from commit a3be979)
@kiashok
Copy link
Contributor

kiashok commented Oct 27, 2023

Nit: could you please add [release/0.11] to the title? :)

@anmaxvl anmaxvl changed the title make sure to close files in dmverity-vhd tool (#1770) [release/0.11] make sure to close files in dmverity-vhd tool (#1770) Oct 30, 2023
@anmaxvl anmaxvl merged commit 114d70c into microsoft:release/0.11 Oct 30, 2023
15 of 16 checks passed
@anmaxvl anmaxvl deleted the backport-dm-verity-vhd-tool-changes branch October 30, 2023 04:41
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.

None yet

3 participants