From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: Joerg Schilling <schilling@fokus.fraunhofer.de>
Cc: mrmacman_g4@mac.com, matthias.andree@gmx.de,
linux-kernel@vger.kernel.org, acahalan@gmail.com
Subject: CD writing in future Linux try #2 [ was: Re: CD writing in future Linux (stirring up a hornets' nest) ]
Date: Fri, 27 Jan 2006 17:37:48 +0100 [thread overview]
Message-ID: <58cb370e0601270837h61ac2b03uee84c0fa9a92bc28@mail.gmail.com> (raw)
Hi,
I'm stealing thread in hope of stopping flamewar
and finally having some useful discussion.
I address this to everybody not only to Joerg:
[*] As this is my thread now discussing SG_IO on /dev/hd* vs /dev/sg*
is BANNED. Please continue discussing this in the old thread. :-)
I'm sure thare are other important things that we can agree on.
If it doesn't work it will be my first and the last mail in this thread...
On 1/27/06, Joerg Schilling <schilling@fokus.fraunhofer.de> wrote:
> Vojtech Pavlik <vojtech@suse.cz> wrote:
>
> > > The only integrative (and this useful for libscg) interface on Linux is /dev/sg*
> > >
> > > /dev/hd* may look nice if you only look skin-deep
> > >
> > > How do you e.g. like send SCSI commands to ATAPI tape drives on Linux?
> >
> > I see you asking this again and again, and you seem to want to hear this
> > answer: "You don't." I haven't checked the code, but I guess the SG_IO
> > interface isn't available there. And I don't think this is a problem,
> > because a) if it was needed, it can be added trivially with minimum
> > added code, b) ATAPI tapes are dead, much the way ATAPI floppies are.
>
> Nice to see that agree that sending SCSI via /dev/hd* is a hack with limited
> benefit.
>
> Maybe (now that we did agree about the way to go) it makes sense to start
> discussing which bugs in Linux need to be fixed in order to close e.g.
> the Bugs in the Debian bug tracking system for cdrtools that are related to the
> Linux kernel.
Yes, lets talk about other problems, do you have pointers bugs handy?
I'm not very familiar with Debian bug tracking system and I see there
more than 3 bugs for cdrtools.
> This are the three most important Linux kernel bugs:
>
> - ide-scsi does not do DMA if the DMAsize is not a multiple of 512
> A person who knows internal Linux structures shoule be able
> to fix this (and allow any multiple of 4) in less than one hour.
I'll take a look, it should be quite easy
and I don't see a reason for this restriction.
> If we sum up the time spend on this discussoion, I really cannot
> understand why this has not been fixed earlier.
Because nobody cared and flamewaring is easy in contrast
to doing some real work.
> - /dev/hd* artificially prevents the ioctls SCSI_IOCTL_GET_IDLUN
> SCSI_IOCTL_GET_BUS_NUMBER from returning useful values.
> As long as this bug is present, there is no way to see SG_IO
> via /dev/hd* as integral part of the Linux SCSI transport concept.
What are the return values of SCSI_IOCTL_GET_IDLUN
and SCSI_IOCTL_GET_BUS_NUMBER needed for?
Please elaborate as:
* SG_IO ioctl doesn't require lun and bus number for arguments
* sg_io_hdr_t also doesn't contain/require these fields
so I simply cannot see why they are needed by kernel.
If lun and bus number are needed by cdrecord please explain why
(if only for enumerating devices sorry but see [*]).
> - If sending SCSI sia ATAPI, Linux under certain unknown conditions
> bastardizes the content of SCSI commands. A possible reason may be
Sorry but I can't do much about it without knowing more details.
Please provide some way to reproduce the problem
("certain unknown conditions" is not very useful).
> that it sends random data in the remainder between the actual
> SCSI cdb size and the ATAPI SCSI cdb size.
It should send 0-s but I'll recheck this.
> ATAPI drives that verify SCSI cdb's for correctness fail in this
> case.
Thanks,
Bartlomiej
next reply other threads:[~2006-01-27 16:37 UTC|newest]
Thread overview: 89+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-27 16:37 Bartlomiej Zolnierkiewicz [this message]
2006-01-29 11:01 ` Joerg Schilling
2006-01-29 11:15 ` Jan Engelhardt
2006-01-29 11:28 ` Matthias Andree
2006-01-30 15:24 ` Joerg Schilling
2006-02-05 12:03 ` Jan Engelhardt
2006-02-06 16:29 ` Joerg Schilling
2006-02-06 17:17 ` René Rebe
2006-02-06 18:02 ` Matthias Andree
2006-01-29 11:26 ` Matthias Andree
2006-01-29 20:41 ` Jan Engelhardt
2006-01-29 20:50 ` Joerg Schilling
2006-01-29 21:28 ` Albert Cahalan
2006-01-30 16:11 ` Joerg Schilling
2006-01-30 16:31 ` Albert Cahalan
2006-01-30 16:35 ` Joerg Schilling
2006-01-30 17:08 ` Matthias Andree
2006-01-30 17:14 ` Joerg Schilling
2006-01-30 17:30 ` Matthias Andree
2006-01-30 17:37 ` Joerg Schilling
2006-01-30 17:49 ` Matthias Andree
2006-01-30 20:22 ` James Courtier-Dutton
2006-01-31 10:17 ` Andreas Jellinghaus
2006-01-30 20:24 ` Phillip Susi
2006-01-31 10:47 ` Joerg Schilling
2006-01-31 11:22 ` Matthias Andree
2006-02-01 0:15 ` Bill Davidsen
2006-02-01 7:45 ` Tejun Heo
2006-02-01 16:41 ` Joerg Schilling
2006-01-31 23:55 ` Bill Davidsen
2006-02-01 15:06 ` Joerg Schilling
2006-01-30 15:25 ` Joerg Schilling
2006-01-30 17:09 ` Matthias Andree
2006-01-30 17:15 ` Joerg Schilling
2006-01-30 23:26 ` Pavel Machek
2006-02-01 15:51 ` Jan Engelhardt
2006-01-31 1:43 ` Patrick McFarland
2006-01-31 1:47 ` CD writing in future Linux try #2 David S. Miller
2006-01-31 11:13 ` Gerhard Mack
2006-01-31 11:18 ` David S. Miller
2006-02-01 0:28 ` Bill Davidsen
2006-02-01 15:12 ` Joerg Schilling
2006-02-01 15:25 ` Matthias Andree
2006-02-01 16:32 ` Joerg Schilling
2006-02-02 16:24 ` Jan Engelhardt
2006-02-02 16:29 ` Jan Engelhardt
2006-02-02 18:37 ` Bill Davidsen
2006-02-03 12:58 ` Joerg Schilling
2006-02-03 13:15 ` Matthias Andree
2006-02-03 16:43 ` Joerg Schilling
2006-02-03 13:30 ` linux-os (Dick Johnson)
2006-02-03 19:27 ` Bill Davidsen
2006-02-01 4:49 ` Albert Cahalan
2006-02-01 7:56 ` jerome lacoste
2006-02-01 16:42 ` Joerg Schilling
2006-02-02 0:30 ` Kurt Wall
2006-02-01 11:33 ` Rene Herman
2006-02-01 16:21 ` Jon Agirre
2006-02-02 16:35 ` Jan Engelhardt
2006-02-06 23:15 ` Peter Chubb
2006-02-07 5:00 ` Albert Cahalan
2006-02-01 16:36 ` Joerg Schilling
2006-02-01 17:01 ` Matthias Andree
2006-02-02 19:17 ` Bill Davidsen
2006-01-31 16:46 ` Lennart Sorensen
2006-01-31 14:15 ` linux-os (Dick Johnson)
[not found] ` <515e525f0601302205h4a845f36u12b946515759239a@mail.gmail.com>
2006-01-31 6:46 ` CD writing in future Linux try #2 [ was: Re: CD writing in future Linux (stirring up a hornets' nest) ] Kyle Moffett
2006-01-31 8:55 ` Pekka Enberg
2006-02-01 0:25 ` Jesper Juhl
2006-02-02 16:45 ` Jan Engelhardt
2006-02-10 17:58 ` CD-blanking leads to machine freeze with current -git [was: Re: CD writing in future Linux try #2 [ was: Re: CD writing in future Linux (stirring up a hornets' nest) ]] Marc Koschewski
2006-02-10 19:19 ` Phillip Susi
2006-02-10 19:39 ` Gene Heskett
2006-02-10 20:12 ` Kyle Moffett
2006-02-10 21:00 ` Gene Heskett
2006-02-10 21:00 ` Marc Koschewski
2006-02-10 21:26 ` Phillip Susi
2006-02-10 21:35 ` Lennart Sorensen
2006-02-11 15:16 ` CD-blanking leads to machine freeze with current -git Jan Engelhardt
2006-02-11 15:25 ` Marc Koschewski
2006-02-11 15:35 ` Doug McNaught
2006-02-11 15:44 ` Marc Koschewski
2006-02-10 23:23 ` CD-blanking leads to machine freeze with current -git [was: Re: CD writing in future Linux try #2 [ was: Re: CD writing in future Linux (stirring up a hornets' nest) ]] Alan Cox
2006-02-10 23:41 ` Marc Koschewski
2006-02-10 23:50 ` CD-blanking leads to machine freeze with current -git Doug McNaught
2006-02-10 23:56 ` CD-blanking leads to machine freeze with current -git [was: Re: CD writing in future Linux try #2 [ was: Re: CD writing in future Linux (stirring up a hornets' nest) ]] Alan Cox
2006-02-11 1:03 ` hackmiester (Hunter Fuller)
2006-02-11 1:08 ` Marc Koschewski
[not found] <5zENZ-72l-47@gated-at.bofh.it>
[not found] ` <5AiBB-5AH-17@gated-at.bofh.it>
[not found] ` <5AiV2-62l-7@gated-at.bofh.it>
[not found] ` <5AJ9s-2go-23@gated-at.bofh.it>
[not found] ` <5AKHI-4IV-5@gated-at.bofh.it>
[not found] ` <5AKRr-4V5-19@gated-at.bofh.it>
2006-01-31 1:01 ` CD writing in future Linux try #2 [ was: Re: CD writing in future Linux (stirring up a hornets' nest) ] Robert Hancock
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=58cb370e0601270837h61ac2b03uee84c0fa9a92bc28@mail.gmail.com \
--to=bzolnier@gmail.com \
--cc=acahalan@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=matthias.andree@gmx.de \
--cc=mrmacman_g4@mac.com \
--cc=schilling@fokus.fraunhofer.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®