Re: cdrom ioctls

"Peter T. Breuer" <[email protected]>
Newsgroups gmane.linux.enbd.general
Message-ID <[email protected]>
"Also sprach Esmont Alexander:"
> I have one problem with netblock - some cdrom ioctls have not right
>  processing.  For example: CDROM_DRIVE_STATUS and CDROM_DISK_STATUS must
>  return drive and disk status accordingly, but return 0 always.
> 
>  Please, prompt me what and where change to correct working of that
>  ioctls?


You need to read the enbd_ioctl_table.h file (2.6 kernel).

      { CDROM_DRIVE_STATUS, _NEW_IOW(CDROM_DRIVE_STATUS, int), },
      { CDROM_DISC_STATUS, _NEW_IO(CDROM_DISC_STATUS), },


Which says that the first is a write of an int-sized datum to the
kernel (such ioctls can only return success or failure, 0 or -ve value),
and the second is a call that neither expects an argument nor returns a
result (it will be 0 or -ve for error).

Is that not the case? In that casechange and tell me about it.

Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.