Rewrite the physical volume detection routines to simplify code and make it more efficient.
Pseudo-code:
Check if disk is a physical volume. If it is no further work at this point.
If not, check if core storage or APFS and find physical disk where virtual disk resides in appropriate manner.
After above, THEN search for EFI partition once.
Rewrite the physical volume detection routines to simplify code and make it more efficient.
Pseudo-code:
Check if disk is a physical volume. If it is no further work at this point.
If not, check if core storage or APFS and find physical disk where virtual disk resides in appropriate manner.
After above, THEN search for EFI partition once.