Warn the user if a file system (NTFS) has not enough claster size for a big container file before the file write

Open
#1,949 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
c

Research direction

Start by tracing the container file write path and how VeraCrypt handles file sizes on NTFS, especially the limit described as 2^32 times the cluster size. Check whether current code still allows a write to fail near that limit, then identify how the application could warn before writing. Done means a reliable warning appears before an affected write; the issue names no source files or tests, so first locate the relevant code and coverage.

Written by the indexing model from the issue text.

Description

Desired behavior

The application fails to write the end of the container file in case if the file size bigger than 2^32*<claster-byte-size>. It is an old issue which I've catched in an old VeraCrypt version.

It's may be already not the case. But for a big HDD drive it is an issue, because if you write a 16TB file, then you might could not extend it without a buy another one at least with the same size or bigger.

Your Environment

Please tell us more about your environment

VeraCrypt version:
1.26.7

Operating system and version:
Windows 8

System type:
64-bit

Dominant language
C
Stars
11.7k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
28

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from veracrypt/VeraCrypt

All issues in veracrypt/VeraCrypt

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.