[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug in installation of Debian 2.1 on Atari



On Tue, May 18, 1999 at 10:45:04AM +0200, Roman Hodek wrote:
> > So if you have a patch please throw it my way :-)
> 
> I've checked it in into the CVS, but I guess that doesn't help you.

I could have extracted it out there somehow without upgrading my whole
source to whatever they use now but that might have been a bit painful :-)

> Here's a normal patch:
> 
> --- boot-floppies/utilities/libfdisk/partbl_atari.c	1998/02/24 10:32:59	1.3
> +++ boot-floppies/utilities/libfdisk/partbl_atari.c	1999/05/17 13:16:18	1.4
> @@ -68,7 +68,9 @@
>      rs = (struct rootsector *) data;
>      if (!(fdisk_device = fdisk_find_disk( device )))
>  	return 0;
> -    hd_size = fdisk_device->size;
> +	/* fdisk_device->size is in kByte, but we need it in sectors for
> +	 * comparisons. */
> +    hd_size = 2*fdisk_device->size;

That's all ?? What about partitions with an odd number of sectors, does
fdisk_find_disk round up or down there, and will that affect the comparison
(end of partition > end of disk) ? 

	Michael


Reply to: