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

Fix some Linux issues in VHD code #5149

Merged
merged 4 commits into from
Aug 3, 2024

Conversation

maxpat78
Copy link
Contributor

@maxpat78 maxpat78 commented Aug 2, 2024

  • imageDiskVHD::CreateDifferencing in bios_vhd.cpp avoids Linux incompatibilities uising uint16_t instead of wchar_t
  • VHDMAKE now allows absolute pathnames for differencing images, under Linux as like under Windows

Closes #5132 and #5143 and possibly #5145

Avoids Linux incompatibilities uising uint16_t instead of wchar_t
VHDMAKE now allows absolute pathnames in differencing images under Linux like under Windows. 

Absolute pathnames should be avoided since they prevents exchanging VHD images between OSes, however.
@maxpat78 maxpat78 changed the title Update bios_vhd.cpp Fix some Linux issues in VHD code Aug 2, 2024
@joncampbell123
Copy link
Owner

Awesome! Do VHD images work correctly on your end with this change?

@maxpat78
Copy link
Contributor Author

maxpat78 commented Aug 3, 2024

On Windows 11, new VHD code works fine, as usual.

On Linux, I've tried GitHub built artifact with Windows 11 WSL. VHDMAKE works as expected, except for the differencing VHD created in a subdirectory, which can't get mounted:

image

The reason is that only parent file name, not full relative path, gets stored in the VHD locator sector (both Linux & Windows): I'll try to fix this when I'll have more time.

A new VHD child image locator now stores absolute pathname to parent, allowing child images lay in subdirectories
try to fix realpath use on non-Windows platforms
@joncampbell123 joncampbell123 merged commit 5af9c01 into joncampbell123:master Aug 3, 2024
19 of 20 checks passed
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.

Linked VHDs are not working?
2 participants