Re: READ SCSI cmd seems to fail on SATA optical devices...



On Mon, 2006-11-13 at 20:32 +0100, Arjan van de Ven wrote:
On Mon, 2006-11-13 at 19:56 +0100, Mathieu Fluhr wrote:
On Mon, 2006-11-13 at 13:49 -0500, Phillip Susi wrote:
Mathieu Fluhr wrote:
Hello,

I recently tried to burn some datas on CDs and DVD using a SATA burner
and the latest 2.6.18.2 kernel... using NeroLINUX. (It is controlling
the device by sending SCSI commands over the 'sg' driver)


Please note that the sg interface is depreciated. It is now recommended
that you send the CCBs directly to the normal device, i.e. /dev/hdc.

Of course for native IDE devices, we are using the /dev/hdXX device, but
for SATA devices controlled by the libata, this is not possible ;)

for those there is /dev/scd0 etc...
(usually nicely symlinked to /dev/cdrom)

Hummm as we are _writing_ to devices, I think that using /dev/sgXX with
SG_IO is better no?

... and the problem is not in accessing the device itself (this is
working like a charm) but understanding why a SCSI READ(10) cmd
sometimes fails as a ATA-padded READ(10) cmd - as discribed in the Annex
A of the MMC-5 spec - ALWAYS works.
-> I would suspect somehow a synchronisation problem somehow in the
translation of SCSI to ATA command...

Another point: When I say that a READ(10) fails, it does NOT mean that
the command execution itself fails. Everything works as if the command
exectution succeeds, but the resulting buffer contains garbage (i.e. not
only 1 or 2 bytes differs)





-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Gush - a (half-baked) Graphical User SHell
    ... the functions of a shell, a "dumb" terminal window, and a pager like ...  Have you ever considered updating tkcon to have this ... in tkcon you get: invalid command name "hcp". ... On startup I fork and disconnect from the controlling ...
    (comp.lang.tcl)
  • Re: READ SCSI cmd seems to fail on SATA optical devices...
    ... I recently tried to burn some datas on CDs and DVD using a SATA burner ... and the latest 2.6.18.2 kernel... ... using NeroLINUX. ... (It is controlling ...
    (Linux-Kernel)
  • Re: Job vs process?
    ... Any command run by a user on the shell command line is a job? ... A job is _always_ started from an interactive shell and a job is ... _always_ connected to a controlling terminal. ... via the three standard file streams, stdin, stdout, and stderr. ...
    (comp.unix.shell)
  • LPR Problems
    ... I'm using LPR on a windows 2003 web server, to send a file to a network ... printer (actually the pc controlling the printer). ... using a switch on the command line? ...
    (microsoft.public.win2000.printing)
  • Re: How To Do Single Step debugging Under Sparc
    ... > i forget to add poll in the while ... > it cost me 30seconds to finish a ls command. ... controlling a process is slow. ...
    (comp.unix.programmer)