Did something change with ioctl CAMIOCOMMAND from 8.0 to 9.0 ?



Hi,

googling brought me to this forum post
http://forums.freebsd.org/showthread.php?p=172885
which reports that xfburn fails to recognize optical drives on FreeBSD 9.0.

There are error messages about a ioctl which might be emitted by libburn
for getting a list of drives:

xfburn: error sending CAMIOCOMMAND ioctl: Inappropriate ioctl for device

On my FreeBSD 8.0 test system, everything seems ok with libburn.
xorriso lists both drives and is willing to blank and burn a CD.

Could somebody with a 9.0 system and a CD/DVD/BD drive please get xorriso
(e.g. from ports) and try whether it shows all drives ?
This command:

xorriso -devices

should report something like

0 -dev '/dev/cd0' rwrwr- : 'TSSTcorp' 'CDDVDW SH-S223B'
1 -dev '/dev/cd1' rwrwr- : 'TSSTcorp' 'DVD-ROM SH-D162C'

One needs rw-permissions for the involved devices in order to get them
listed. Up to now, this were: acd* cd* pass* xpt*


If the CAMIOCOMMAND of libburn/sg-freebsd.c is wrong for 9.0, then i could
need instructions how to perform drive listing and how to recognize 9.0
resp. the need for the new code at compile time.

The code can be inspected online at
http://libburnia-project.org/browser/libburn/trunk/libburn/sg-freebsd.c

The (union ccb) idx->ccb for this ioctl at line 231

if (ioctl(idx->fd, CAMIOCOMMAND, &(idx->ccb)) == -1) {

is set up in this function beginning at line 160

static int sg_init_enumerator(burn_drive_enumerator_t *idx_)


Have a nice day :)

Thomas

_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • [BK PATCHES] ide-2.6 update
    ... all ioctl calls return 0 on success ... bitmask of nice flags. ... io_portsvalues to be written to taskfile registers ... * Probe for drives in the usual way.. ...
    (Linux-Kernel)
  • Need some insight on error messages that I am getting.
    ... Well I am running FreeBSD 4.8. ... I get some error messages. ... the jumpers on the drives. ... After installation, it shows up as a CHS ...
    (freebsd-questions)
  • Re: Interpreting CDROM_GET_CAPABILITIES ioctl
    ... > I have need to determine the capabilities of an optical drive. ... > either my method of interpretation is bad or these drives are ... > has experience with the CDROM_GET_CAPABILITIES ioctl, ... The C language doesn't define SDL or ioctl, ...
    (comp.lang.c)
  • Re: is there any Hard-disk shock-protection for 2.6.18 and above?
    ... Since this feature is actually drive ... forcing an idle immediate with unload feature on a drive which doesn't ... have no idea as to how drives might react if they don't support it. ... I can now see the benefits of an ioctl approach. ...
    (Linux-Kernel)
  • [PATCH] ide: remove dead/obsolete ->busproc method
    ... of working as intended because to issue an ioctl there ... the IDE quilt tree. ... * Set/get power state for a drive. ... affects both drives on each channel. ...
    (Linux-Kernel)