Michael Casadevall 025b4f04fe Correcting miscalculation of sector number in some cases.
mkdosfs will incorrectly calculate the number of sectors of a
given FAT partition if the number sectors are odd due to
count_blocks incorrectly handling the remainder of a division
operation. This miscalculation causes the OMAP4 bootloader to
fail to boot.

This bug can be observed by comparing the total sector size in
fdisk expert more to fsck.msdos; this discrepancy only shows up
when the number of sectors are odd.

See https://bugs.launchpad.net/ubuntu/+source/dosfstools/+bug/794043
for more information.

Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:51:37 +01:00
2013-01-23 12:51:29 +01:00
2013-01-23 12:51:19 +01:00
2013-01-23 12:51:28 +01:00
2013-01-23 12:50:22 +01:00
Description
No description provided
292 KiB
Languages
C 97.9%
Makefile 1.9%
Shell 0.2%