public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Alan Jenkins <sourcejedi@phonecoop.coop>
To: linux-kernel@vger.kernel.org
Subject: Re: cd burning: kernel / userspace?
Date: Wed, 11 Aug 2004 22:03:55 +0100	[thread overview]
Message-ID: <411A89BB.60505@phonecoop.coop> (raw)
In-Reply-To: <20040811164109.GA18761@animx.eu.org>


>>Some good awkward questions there :). 
>>    
>>
>
>Yup =)
>
>  
>
>>I agree that cdrwcontrol/dd seems silly.  I think you would still want 
>>to use a commandline tool like cdrecord.
>>    
>>
>
>I dunno, with all the talk about the dev=x,y,z stuff.  I'm kinda used to it,
>but why the hell should I have to -scanbus everytime I decide to use a usb
>cdrw/dvdrw?  Even using /dev, it's still interesting since I don't use udev
>right now.  The way that 2.6 does things is rather nice.  I wish I could do
>that on 2.4 with my usb hard drive.
>
>back to the point.  A cdrwcontrol/dd script wouldn't be so bad.  I know how
>they hate things to be in the kernel, but somethings just don't work well in
>user space
>  
>
A script would be cool, but dd doesn't do the memory locking and real 
time priority stuff.  I don't know how important this is - how old your 
hardware would have to be for you to get "coasters" (buffer underun) 
without it.

>>I need to get to know the technical details better - I understand the 
>>instances you listed from the users point of view, but not from the 
>>point of view of what gets written to the disk and how.
>>    
>>
>
>I had ideas about that...  If you're burning one session, it would be easy
>to have the driver prepare the disk, count the amount of data and once the
>device is closed, it can do the fixate.  Userspace is freed up at this point
>and it can optionally eject the disk.  Just depending on the options
>presented.
>
>It would get a bit cumbersom to do data/audio (or just audio) if you don't
>do dao.  Maybe it would be better to have a cdrwtool that once it sets up
>the ioctls, it can read a stream (stdin or a file) and basically be
>cdrecord.  However, it won't have to drive the cdrw.
>
>  
>
Theres an option in cdrecord to fixate an arbitrary disk (one without a 
TOC for whatever reason), and one not to fixate the disk you're writing, 
so it looks like fixation could and should be done on demand using an 
ioctl.  You'd also need ioctls to deal with multiple sessions.

I think most people would want a cdrwtool that basically pretends to be 
cdrecord (in some ways ;), because thats the most intuitive way to do it 
- even if you can do everything you want to with cdrwtool for the ioctls 
and dd for the data.

I've definitely underestimated the problems with my idea, and I can't 
see any tangible benefits which couldn't be obtained by hacking 
cdrecord.  Idealistically, its the right thing to do - but in practice 
its unessecary, I'm not up to the job, and its not attractive enough for 
someone to pick up.  After packet writing is seamlessly merged into the 
uniform cdrom driver it might start looking more important, and I might 
have learnt enough to at least implement a proof of concept.  I'm still 
interested in hashing out more details and potential benefits.

  parent reply	other threads:[~2004-08-11 21:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-10  9:51 cd burning: kernel / userspace? Alan Jenkins
2004-08-10 22:05 ` Wakko Warner
     [not found]   ` <4119DFB0.6050204@phonecoop.coop>
     [not found]     ` <20040811164109.GA18761@animx.eu.org>
2004-08-11 21:03       ` Alan Jenkins [this message]
2004-08-11 21:33         ` Wakko Warner
2004-08-11 21:43           ` Alan Jenkins
2004-08-12  0:12             ` Wakko Warner
2004-08-12  9:07               ` Alan Jenkins
2004-08-12 12:37               ` Sergey Vlasov
2004-08-12 23:06   ` Kevin Fox
2004-08-13  0:13     ` Wakko Warner
2004-08-16 21:37       ` David Lang
2004-08-10 23:50 ` Valdis.Kletnieks
2004-08-16 20:47 ` Pavel Machek

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=411A89BB.60505@phonecoop.coop \
    --to=sourcejedi@phonecoop.coop \
    --cc=linux-kernel@vger.kernel.org \
    /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