OpenBSD: add FFS volume formatting support

Expose FFS as the native OpenBSD filesystem option for volume creation and accept FFS/UFS on the command line, mapping mounts to the OpenBSD ffs filesystem type.

Run newfs through the elevated core service on vnd raw devices, then temporarily mount the new filesystem to transfer root directory ownership back to the invoking user.

Keep the non-interactive creation default as FAT on OpenBSD so existing unattended scripts do not start requiring elevation.
This commit is contained in:
Mounir IDRASSI
2026-07-05 07:55:39 +09:00
parent ede12bf81c
commit 48f8d87418
13 changed files with 471 additions and 25 deletions
+6
View File
@@ -415,6 +415,12 @@ namespace VeraCrypt
ArgFilesystem = VolumeCreationOptions::FilesystemType::NTFS;
else if (str.IsSameAs (L"exFAT", false))
ArgFilesystem = VolumeCreationOptions::FilesystemType::exFAT;
#elif defined (TC_OPENBSD)
else if (str.IsSameAs (L"FFS", false) || str.IsSameAs (L"UFS", false))
{
ArgMountOptions.FilesystemType = L"ffs";
ArgFilesystem = VolumeCreationOptions::FilesystemType::FFS;
}
#endif
else
throw_err (LangString["UNKNOWN_OPTION"] + L": " + str);