macOS: recover mounted volume mount points

Prefer hdiutil plist entities that carry a mount-point when recording the virtual device. This fixes APFS images where the first dev-entry is not the mounted volume.

Add a macOS mounted-volume refresh hook that recovers VirtualDevice and MountPoint from hdiutil info when FUSE-T SMB auxiliary metadata is missing or stale.
This commit is contained in:
Mounir IDRASSI
2026-05-15 09:36:29 +02:00
parent d4a237fbaf
commit cd101433c5
4 changed files with 113 additions and 23 deletions
+4 -1
View File
@@ -594,7 +594,7 @@ namespace VeraCrypt
mountedVol->AuxMountPoint = mf.MountPoint;
if (!mountedVol->VirtualDevice.IsEmpty())
if (mountedVol->MountPoint.IsEmpty() && !mountedVol->VirtualDevice.IsEmpty())
{
MountedFilesystemList mpl = GetMountedFilesystems (mountedVol->VirtualDevice);
@@ -602,6 +602,9 @@ namespace VeraCrypt
mountedVol->MountPoint = mpl.front()->MountPoint;
}
if (mountedVol->MountPoint.IsEmpty() || mountedVol->VirtualDevice.IsEmpty())
UpdateMountedVolumeInfo (mountedVol);
volumes.push_back (mountedVol);
if (!volumePath.IsEmpty())