Re: [PATCH] Fix size calculation for EFI image
On Wed, Jan 27, 2016 at 01:29:47PM +0100, Philipp Hahn wrote:
>CD creation fails with "disk full", because of rounding errors.
>
>The minimum size of data-allocation is a 'cluster', which is a
>power-of-two multiple of sectors.
>mkfs.msdos chooses minimum FAT and cluster size for image: FAT12<16G
>mkfs.msdos uses block-count where a block is 1024 B, but must be rounded
>up to track_size with 32 sectors.
>
>Round up each file to clusters before summing.
>A sub-directory entry needs 1 cluster minimum.
Applied in current master, thanks. I'll backport to the wheezy and jessie
build branches too.
--
Steve McIntyre, Cambridge, UK. steve@einval.com
Mature Sporty Personal
More Innovation More Adult
A Man in Dandism
Powered Midship Specialty
Reply to: