mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-05-16 09:31:31 +00:00
Linux: Reduce minimal size requirement for BTRFS support to 16 MiB by using mixed mode for volumes whose size is less than 109 MiB
This commit is contained in:
@@ -810,7 +810,7 @@ namespace VeraCrypt
|
||||
}
|
||||
|
||||
if (options->Filesystem == VolumeCreationOptions::FilesystemType::Btrfs
|
||||
&& (filesystemSize < VC_MIN_BTRFS_VOLUME_SIZE))
|
||||
&& (filesystemSize < VC_MIN_SMALL_BTRFS_VOLUME_SIZE))
|
||||
{
|
||||
throw_err (_("Specified volume size is too small to be used with Btrfs filesystem."));
|
||||
}
|
||||
@@ -939,7 +939,14 @@ namespace VeraCrypt
|
||||
args.push_back ("-f");
|
||||
|
||||
if (options->Filesystem == VolumeCreationOptions::FilesystemType::Btrfs)
|
||||
{
|
||||
args.push_back ("-f");
|
||||
if (filesystemSize < VC_MIN_LARGE_BTRFS_VOLUME_SIZE)
|
||||
{
|
||||
// use mixed mode for small BTRFS volumes
|
||||
args.push_back ("-M");
|
||||
}
|
||||
}
|
||||
|
||||
args.push_back (string (virtualDevice));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user