[syslinux] [PATCH 1/1] core: Check if ldlinux.sys exceeds the limit at its building time.

H. Peter Anvin
Mon, 26 May 2014 21:48:11 -0000

On 05/26/2014 01:44 PM, Paulo Alcantara wrote:
> Hi Genec,
>
> On Sun, May 25, 2014 11:27 am, Gene Cumm wrote:
>
>> Raphael/Paulo: does UFS2 have a hard 64kiB limit?  I know it's not
>> installed to the first sector where the first superblock is located.
>
> I have no much experience with UFS2 filesystem. I've just took a quick
> look at its internals and I can see that UFS2 places its superblock at
> either 64KiB or 256KiB (depending on the media being used).
>
> I haven't found any code that tries to read superblock from 256KiB, but
> I'm not sure if we can rely on it being always at 64KiB.
>
>>> IMNSHO is including core/ldlinux_limit.pl better
>>> than waiting for a better core/ldlinux_limit.pl
>>
>> This should be rendered obsolete and unnecessary with the recent patch
for
>> ldlinux.sys on btrfs (but might be relevant for UFS2).
>
> Agreed. IMHO, I would use this script for the UFS2 case - since UFS2
> superblock is _not_ placed in a fixed offset like btrfs is. There
wouldn't
> be room enough for Syslinux when the superblock is in 64KiB instead of
> 256KiB, for example.
>
> Raphael, as you're certainly more experienced with UFS2 than me, what
do
> you think?
>

Does UFS2 move files around autonomously?  If not, let's just use the
normal way of handling ldlinux.sys.

	-hpa