[syslinux] isohybrid: seek error - 6: Invalid argument

Gerardo Exequiel Pozzi vmlinuz386 at yahoo.com.ar
Mon Sep 13 00:29:13 PDT 2010


  On 09/13/2010 03:39 AM, H. Peter Anvin wrote:
> Most likely it was compiled without -D_FILE_OFFSET_BITS=64.
>
>     -hpa
No, is compiled with it.

gcc -Wp,-MT,isohybrid.o,-MMD,./.isohybrid.o.d -W -Wall 
-Wstrict-prototypes -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 -c 
-o isohybrid.o isohybrid.c

(gcc 4.5.1 - glibc 2.12.1 - Arch Linux - i686)
(under x86_64 works OK)
>
> On 09/12/2010 10:25 PM, P J P wrote:
>>     Hello Gerardo,
>>
>> --- On Mon, 13/9/10, Gerardo Exequiel Pozzi<vmlinuz386 at yahoo.com.ar>
>>> Recently while playing with bigger iso images (>2G)
>>> looks like isohybrid from syslinux-4.02 fails. Sometimes
>>> tunning heads/sectors (-h/-s) works, because no padding is
>>> needed depending of size of the image.
>>>
>>> isohybrid: pandereta-2010.09.13-i686.iso: seek error - 6:
>>> Invalid argument
>>
>>    Thanks for the update. The error seems to come while 
>> seeking(fseek(3)) to fix the file pointer at the end of the file, 
>> just before adding required padding to the iso.
>>
>> ---
>>      if (fseek(fp, isostat.st_size, SEEK_SET))
>>          err(1, "%s: seek error - 6", argv[0]);
>>
>>      memset(buf, 0, padding);
>>      if (fwrite(buf, sizeof(char), padding, fp) != (size_t)padding)
>>          err(1, "%s: write error - 2", argv[0]);
>> ---
>>
>> Strange, that it should happen. I guess, may be, HPA could be better 
>> able to explain why it should happen for 2G files.
>>
>> Can I have the iso file?
I can't send, my connection is very low for uploading.

Anyway I can test patches ;)

>>
>> Thank you.
>> ---
>> Regards
>>      -Prasad
>> PS: Please don't send me html/attachment/Fwd mails
>>
>>
>>
>


-- 
Gerardo Exequiel Pozzi
\cos^2\alpha + \sin^2\alpha = 1





More information about the Syslinux mailing list