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:
Jean-Pierre André 2020-03-07 10:43:00 +01:00
parent 32c27a8a4f
commit 2c6472ee5a

View File

@ -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",