mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-06-09 21:22:41 +00:00
macOS: force fresh exFAT layout when formatting volumes
Pass -R to newfs_exfat in both GUI and text-mode volume creation so macOS derives a fresh exFAT layout instead of preserving stale geometry from an existing exFAT boot region. This matches Finder/Disk Utility erase behavior. Validated on Windows 11: chkdsk no longer reports boot-region corruption on volumes formatted this way. Fixes #1021.
This commit is contained in:
@@ -1136,6 +1136,9 @@ namespace VeraCrypt
|
||||
}
|
||||
|
||||
#ifdef TC_MACOSX
|
||||
if (IsMacOSXExFATFormatter (fsFormatter))
|
||||
AddMacOSXExFATFormatterArgs (args);
|
||||
|
||||
if (IsMacOSXAPFSFormatter (fsFormatter) && !useElevatedAPFSFormatter)
|
||||
AddMacOSXAPFSFormatterUserArgs (args);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user