public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: Joerg Schilling <schilling@fokus.fraunhofer.de>
Cc: psusi@cfl.rr.com, mrmacman_g4@mac.com, matthias.andree@gmx.de,
	linux-kernel@vger.kernel.org, jengelh@linux01.gwdg.de,
	bzolnier@gmail.com, acahalan@gmail.com
Subject: Re: CD writing in future Linux try #2 [ was: Re: CD writing in future Linux (stirring up a hornets' nest) ]
Date: Wed, 01 Feb 2006 16:45:35 +0900	[thread overview]
Message-ID: <43E0671F.1010302@gmail.com> (raw)
In-Reply-To: <43DF403F.nail2RF310RP6@burner>

Joerg Schilling wrote:
> Phillip Susi <psusi@cfl.rr.com> wrote:
> 
> 
>>Joerg Schilling wrote:
>>
>>>I am sorry to see your recent dicussion style.
>>>
>>>I was asking a question and I did get a completely useless answer as
>>>any person who has some basic know how Linux SCSI would know that
>>>doing a stat("/dev/sg*", ...) will not return anything useful.
>>>  
>>
>>It certainly does return something useful, just not what you are looking 
>>for.  It does not return information that allows you to cleanly build 
>>your bus:device:lun view of the world, but it does return sufficient 
>>information to enumerate and communicate with all devices in the 
>>system.  Is that not sufficient to be able to implement cdrecord?  If it 
>>is, then the real issue here is that you want Linux to conform to the 
>>bus:device:lun world view, which it seems many people do not wish to do. 
> 
> It does not allow libscg to find all devices.
> 
>>Maybe it would be more constructive if you were to make a good argument 
>>for why the bus:device:lun view is better than /dev/*, but right now it 
>>seems to me that they are just two different ways of doing the same 
>>thing, and you prefer one way while the rest of the Linux developers 
>>prefer the other. 
> 
> It would help if someone would give arguments why Linux does treat all 
> SCSI devices equal, except for ATAPI transport based ones.
> 

Mostly historic, I guess.  When IDE drivers first got implemented, ATAPI 
wasn't really considered thoroughly and later when generic SCSI command 
support became necessary it was added by bridging ATAPI devices over to 
SCSI using ide-scsi.  People didn't like ide-scsi very much for good 
reasons - special boot parameter, confusing, needed full SCSI stack 
etc...  So, the hd SG_IO came.

And, yes, hd SG_IO has certain drawbacks as you pointed out.  No generic 
command to tape device (as no generic IDE device exists), not an 
integral part of SCSI subsystem and might even contain some new bugs as 
it's different new (well, was) code base.  Yet, people in general seem 
to find the change more beneficial and I personally like the change too.

ide-scsi is obsolete now.  Going back to it just won't happen and as I 
just said, yeah, some good stuff was lost in the process but others are 
gained, so please accept it - there is no central repository of SCSI 
command aware devices on Linux, at least at the moment.  It might happen 
in time but *currently* there is none.  I also think it would be better 
to have one but, hey, that's how the current state is and it will take 
quite some amount of work and time to implement that correctly.

So, let's meet somewhere inbetween.  Reserving a SCSI bus number for 
ATAPI devices and generating ID/LUN for SG_IO devices isn't very 
difficult and probably a good thing to have.  So, unfortunately, we 
won't have pretty /dev/sg* for all SCSI-aware devices, but you only have 
to scan limited number of devices - /dev/sg* and /dev/hd*.

How does that sound?

-- 
tejun

  parent reply	other threads:[~2006-02-01  7:45 UTC|newest]

Thread overview: 89+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-27 16:37 CD writing in future Linux try #2 [ was: Re: CD writing in future Linux (stirring up a hornets' nest) ] Bartlomiej Zolnierkiewicz
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 [this message]
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=43E0671F.1010302@gmail.com \
    --to=htejun@gmail.com \
    --cc=acahalan@gmail.com \
    --cc=bzolnier@gmail.com \
    --cc=jengelh@linux01.gwdg.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthias.andree@gmx.de \
    --cc=mrmacman_g4@mac.com \
    --cc=psusi@cfl.rr.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