diff options
| author | Namjae Jeon <linkinjeon@kernel.org> | 2026-10-03 08:42:49 +0900 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-10-20 18:41:56 +0900 |
| commit | 8506a8031ebfa0e60aaffe7cf4170826399b1f24 (patch) | |
| tree | 07a3a580d0d2a19ef503c6267a2494b6e15cec1d /scripts/Makefile.thinlto | |
| parent | 8deea344965f44d2ccde3e6153f8272196242501 (diff) | |
| download | linux-8506a8031ebfa0e60aaffe7cf4170826399b1f24.tar.gz linux-8506a8031ebfa0e60aaffe7cf4170826399b1f24.zip | |
ntfs: validate and reserve bad clusters at mount
The cluster allocator only consults $Bitmap and never loads
$BadClus:$Bad. A free bitmap bit for a known bad cluster can therefore
place that cluster in the free-space cache and make it available for
new file allocations.
Load the named nonresident $Bad stream and map every attribute extent
before validating full-volume coverage and identity mappings for bad
runs. Reserve only free bits in $Bitmap on writable mounts and flush
the corrections before the initial free-space scan. Keep bad-cluster
counts diagnostic so reservations are accounted for exactly once.
Force read-only mounts with repair advice when $Bad cannot be loaded
or validated, and prevent read-write remounts after such errors. Leave
the bitmap unchanged on read-only mounts and fail mounts on memory
allocation failure. Suppress errors=panic while loading $BadClus so
damaged metadata can fall back to read-only.
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
