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

Minor CimFS bug fixes #1980

Merged
merged 2 commits into from Dec 20, 2023
Merged

Minor CimFS bug fixes #1980

merged 2 commits into from Dec 20, 2023

Conversation

ambarve
Copy link
Contributor

@ambarve ambarve commented Dec 8, 2023

This PR adds minor bug fixes to CimFS writer and also correctly updates the windows OS build that adds support for CimFS.

Signed-off-by: Amit Barve <ambarve@microsoft.com>
Currently, ExpandScratchSize or ExpandSandboxSize functions expand the VHD itself but don't expand the volume
on that VHD (unless we are on 19H1 & build < 19020). This works because for legacy layers the PrepareLayer
call made just before starting the container will automatically expand the volume to match the size of the
VHD. However, in case of CimFS layers we don't call PrepareLayer at all, so in that case we need to expand the
volume at the time of expanding the VHD.

This also means in case of legacy layers, we might have a small perf hit because the VHD is mounted twice for
expansion (once here and once during the PrepareLayer call). But as long as the perf hit is minimal, we should
be okay.

Signed-off-by: Amit Barve <ambarve@microsoft.com>
@ambarve ambarve marked this pull request as ready for review December 19, 2023 07:43
@ambarve ambarve merged commit 6901c20 into microsoft:main Dec 20, 2023
18 of 19 checks passed
@ambarve ambarve deleted the cimfs_pr_7 branch December 20, 2023 16:17
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