bugCompact Disc Input and Control Library - Bugs: bug #30414, "++ WARN: open: Inappropriate...

 
 

bug #30414: "++ WARN: open: Inappropriate ioctl for device" when opening cdrom device on FreeBSD

Submitted by:  Wei Mingzhi <Whistler>
Submitted on:  Mon 12 Jul 2010 01:01:27 AM UTC  
 
Category: run-time errorSeverity: 5 - Average
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: Rocky Bernstein <rocky>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 15 Jul 2010 10:23:43 AM UTC, comment #3:

I'm glad you were able to find a solution to the problem you encountered.

Rocky Bernstein <rocky>
Project AdministratorIn charge of this item.
Thu 15 Jul 2010 09:39:14 AM UTC, comment #2:

wait... just read I should configure the kernel to enable the /dev/cd? devices and use that instead. with that the latest git snapshot worked well.

Sorry for the stupid comment, I'm rather new to freebsd.
I don't see a way to close this as Invalid myself so close it please.

Wei Mingzhi <Whistler>
Thu 15 Jul 2010 04:47:01 AM UTC, comment #1:

the same thing happens on latest git snapshot (with cdio_open_am_cd(dev, "CAM") as mmc commands are not supported with ioctl mode).

Wei Mingzhi <Whistler>
Mon 12 Jul 2010 01:01:27 AM UTC, original submission:

libcdio version: 0.82 release
Running on FreeBSD 7.2

I was trying to use something like this:

int OpenCdHandle(const char *dev) {
cdHandle = cdio_open_cd(dev);

if (cdHandle != NULL) {
return 0;
}

return -1;
}

and OpenCdHandle("/dev/acd0") always generate error the error message "++ WARN: open: Inappropriate ioctl for device" here (and the cdio_open_cd() returns NULL). The same code works well on GNU/Linux (with OpenCdHandle("/dev/cdrom")).

I also tried read-cd utility included with libcdio, and got the same message as well:

cd-read version 0.78.2
Copyright (c) 2003, 2004, 2005 R. Bernstein
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
++ WARN: open: Inappropriate ioctl for device

Wei Mingzhi <Whistler>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rocky (Posted a comment)
  • -unavailable- added by Whistler (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 15 Jul 2010 10:23:43 AM UTCrockyStatusNone=>Invalid
      Assigned toNone=>rocky
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1