mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
Accepted alternative recording of cluster size
Since Windows 10, the cluster size may be greater than 128 sectors, and it has to be recorded as a power of 2 in the boot sector. Hence there are two possible ways of cluster size. Accept both ways leading to valid values.
This commit is contained in:
parent
32c27a8a4f
commit
2c6472ee5a
@ -86,7 +86,7 @@ BOOL ntfs_boot_sector_is_ntfs(NTFS_BOOT_SECTOR *b)
|
||||
break;
|
||||
default:
|
||||
if ((b->bpb.sectors_per_cluster < 240)
|
||||
|| (b->bpb.sectors_per_cluster > 249)) {
|
||||
|| (b->bpb.sectors_per_cluster > 253)) {
|
||||
if (b->bpb.sectors_per_cluster > 128)
|
||||
ntfs_log_error("Unexpected sectors"
|
||||
" per cluster value (code 0x%x)\n",
|
||||
|
Loading…
Reference in New Issue
Block a user