mdbooth / libldm

GNU General Public License v3.0
28 stars 15 forks source link

Fix bug in libldm to allow for all spanned LDM volumes to be correctl… #16

Closed sodul closed 4 years ago

sodul commented 4 years ago

Summary: The following change fixes a bug in the libldm library that prevented certain spanned LDM volumes from being mounted properly.

Fixes #9. A more complete fix than PR #15.

Windows span volume will not always have the partitions in the correct order, thus we have to sort the partitions by volume offset.

Testing: code has been tested on EC2 instance set up with disks from customer VM that ran into this issue. We were able to confirm that the following change compiles properly and mounts the LDM volumes that could not be mounted.

Backward Compatible (Y/N): Y

sodul commented 4 years ago

Thanks @Unmoon for the original fix.