andre <[EMAIL PROTECTED]> writes:

> Speaking about dvd's and suchs: Is it easy to see the difference between a cdroms,
>  dvd drivers and cdwriters because i find /mnt/cdrom; /mnt/cdrom1 not particular 
> handy and would rater see /mnt/dvd/ /mnt/cdrom and/or /mnt/cdwriter

quite easy for ide's :

int
isBurner(fd)
  int fd
  CODE:
  RETVAL = ioctl(fd, CDROM_GET_CAPABILITY) & CDC_CD_RW;
  OUTPUT:
  RETVAL

int
isDvdDrive(fd)
  int fd
  CODE:
  RETVAL = ioctl(fd, CDROM_GET_CAPABILITY) & CDC_DVD;
  OUTPUT:
  RETVAL

much harder for scsi's :-(

Reply via email to