Skip to content

blkid: Add support for > 64k cluster NTFS volumes. - #167

Open
unsound wants to merge 1 commit into
tytso:masterfrom
unsound:master
Open

blkid: Add support for > 64k cluster NTFS volumes.#167
unsound wants to merge 1 commit into
tytso:masterfrom
unsound:master

Conversation

@unsound

@unsound unsound commented Nov 10, 2023

Copy link
Copy Markdown

Windows 10 Creators Edition introduced larger cluster sizes for NTFS, but since the number of sectors per cluster is stored as an 8-bit integer and 128 is the largest power of 2 that can be represented as an unsigned 8-bit integer, larger cluster sizes are encoded as a bitshift value / power of two counted down from the value 255. I.e. past the sectors_per_cluster value 128 the actual number of sectors per cluster is calculated as 2^(256 - sectors_per_cluster).

Windows 10 Creators Edition introduced larger cluster sizes for NTFS,
but since the number of sectors per cluster is stored as an 8-bit
integer and 128 is the largest power of 2 that can be represented as an
unsigned 8-bit integer, larger cluster sizes are encoded as a bitshift
value / power of two counted down from the value 255.
I.e. past the sectors_per_cluster value 128 the actual number of sectors
per cluster is calculated as 2^(256 - sectors_per_cluster).
@unsound

unsound commented Jan 20, 2025

Copy link
Copy Markdown
Author

@tytso Would you please take a look at this patch? It has been sitting here for a good while now and it's needed to support larger NTFS cluster sizes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant