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

Re: isoinfo funny ioctl error



Volker Kuhlmann <hidden@paradise.net.nz> wrote:

> > isoinfo -version
> isoinfo 2.01a31 (i686-pc-linux-gnu)

A bit old....

http://www.fokus.fhg.de/research/cc/glone/employees/joerg.schilling/private/problems.html

> > isoinfo -d -i some.iso
> [output as expected]
> isoinfo: Success. Read error on old image
>
> Error comes from the fact that the some.iso is only the first 1MB of the
> lot. So far, so good.

So this is expected....


> > isoinfo -d -i some.iso > /dev/null
> isoinfo: Inappropriate ioctl for device. Read error on old image
> Exit 25
>
> Looks a bit like isoinfo runs ioctl on stdout, and it fails on
> /dev/null.
>
> > isoinfo -d -i some.iso | cat > /dev/null
>
> Works as first example for SuSE 9.2's isoinfo, but as for the second for
> Jörg's.


Looks like I should change the error handling in scsi.c

        if (read(f, buffer, (sectorcount * SECTOR_SIZE)) 
                        != (sectorcount * SECTOR_SIZE)) { 


May be a result of a short read.....

Jörg

-- 
 EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js@cs.tu-berlin.de		(uni)  
       schilling@fokus.fraunhofer.de	(work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily



Reply to: