Linux: retry auto FAT mounts with blkid

Keep the historical auto-mount behavior as the first attempt when the user did not request a filesystem type. If that mount fails on Linux, detect the filesystem with blkid and retry only for FAT-family types that minimal mount implementations may not auto-probe.

Leave explicit filesystem types and NTFS kernel-driver resolution unchanged.
This commit is contained in:
Mounir IDRASSI committed 2026-06-25 14:40:34 +09:00
1 parent f1a6e23734
commit 26adb5e882
3 files changed
+54 -3

No files matched your search

+4
View File
@@ -80,6 +80,10 @@ namespace VeraCrypt
bool IsFilesystemTypeRegistered (const string &filesystemType) const;
bool IsKernelFilesystemTypeAvailable (const string &filesystemType) const;
bool IsNtfsReadWriteKernelFilesystemTypeAvailable () const;
string DetectLinuxMountFallbackFilesystemType (const DevicePath &devicePath) const;
void MountFilesystemWithFallback (const DevicePath &devicePath, const DirectoryPath &mountPoint,
const string &filesystemType, bool allowFilesystemTypeFallback, bool readOnly,
const string &systemMountOptions, bool internalMountOnly) const;
void ResolveNtfsKernelMountOptions (const DevicePath &devicePath, bool mountNtfsWithKernelDriver,
wstring &filesystemType, bool &internalMountOnly) const;
string SelectNtfsKernelFilesystemType () const;