as long as cluster size is multiple of 512 bytes.
+2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
+ as long as cluster size is multiple of 512 bytes.
+
2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-mkrescue.in: Fix locale directory.
if (grub_memcmp ((char *) &bpb.oem_name, "NTFS", 4))
goto fail;
- data->spc = (bpb.sectors_per_cluster
- * (grub_le_to_cpu16 (bpb.bytes_per_sector)
- >> GRUB_NTFS_BLK_SHR));
+ data->spc = (((grub_uint32_t) bpb.sectors_per_cluster
+ * (grub_uint32_t) grub_le_to_cpu16 (bpb.bytes_per_sector))
+ >> GRUB_NTFS_BLK_SHR);
if (bpb.clusters_per_mft > 0)
data->mft_size = data->spc * bpb.clusters_per_mft;