Bug in disk2vhd with identical headers?

Marc Fauser 1 Reputation point
2022-01-01T00:04:42.52+00:00

I've created a vhdx file with disk2vhd and tried to open it with the newest 7-zip and got an error.
I asked the developer of 7-zip and he told me he will change 7-zip, but it's a bug in disk2vhd
https://sourceforge.net/p/sevenzip/discussion/45797/thread/0a7b47970b/#8e96/19a1/3c40/c1bd

Disk2vhd v2.02 can create image with 2 identical copies of headers. I suppose that it's violation of VHDX specification:
"A header is current if it is the only valid header
or if it is valid and its SequenceNumber field is
greater than the other header's SequenceNumber".

So correct headers must have different SequenceNumber as I suppose.

So does disk2vhx violate the VHDX specification or is 7-zip wrong?

Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,245 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.