1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2026-07-06 04:58:01 -05:00

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
2026-06-21 18:08:29 +09:00
parent f1a6e23734
commit 26adb5e882
3 changed files with 54 additions and 3 deletions
+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;