Skip to content

Commit

Permalink
OcApfsLib: Try to fix master/slave fusion detect
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Jun 5, 2020
1 parent c904ab6 commit b5b178a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Library/OcApfsLib/OcApfsFusion.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,14 @@ InternalApfsTranslateBlock (

//
// For Fusion disks it can be either volume.
// Note, the actual implementation of ApfsJumpStart.efi is different
// from the specification. The specification says that the slave disk
// has the bits set, but the implementation seems to assume that for master.
//
if ((Block & PrivateData->FusionMask) == 0) {
if ((Block & PrivateData->FusionMask) != 0) {
Block &= ~PrivateData->FusionMask;
IsFusionMaster = TRUE;
} else {
Block &= ~PrivateData->FusionMask;
IsFusionMaster = FALSE;
}

Expand Down

0 comments on commit b5b178a

Please sign in to comment.