From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Andre Hedrick <andre@linux-ide.org>
Subject: Re: [RFC] /proc/ide/hdx/settings with ide-default pseudo-driver is a 2.6/2.7 show-stopper
Date: 28 Aug 2003 20:42:33 +0100 [thread overview]
Message-ID: <1062099752.24978.45.camel@dhcp23.swansea.linux.org.uk> (raw)
In-Reply-To: <200308282039.39654.bzolnier@elka.pw.edu.pl>
On Iau, 2003-08-28 at 19:39, Bartlomiej Zolnierkiewicz wrote:
> > Because you need to manipulate drives not attached to a driver
> > currently. I guess you could go through hoops to avoid it, but the
> > old IDE driver was just full of bugs that ide_default removed,
> > and it removed rather more code than it added.
>
> Heh.. bugs yes, code not :).
It removed code. I counted both lines and size when deciding to take
that path 8)
> > You also need to be able to open the device to talk to the empty
>
> You can't open devices owned by ide-default in 2.6 because ide-default,
> probably because it doesnt call add_disk() for them.
ide_default in 2.6 has no open/close method. In the latest 2.4-ac (bits
I sent to Marcelo too) it has one because it now needs it.
> I think scsi does it without default driver. procfs or sysfs
The scsi scheme is somewhat broken, it also fails with hotplug because
if I ask for a reprobe of "0 0 0" and we change controllers - we've just
rescanned the wrong bus. Its only a small race but its real.
> > You need the unplugged_ops for controller unplug, I'm more worried about
> > disk unplug (which I have working now). For controller unplug you either
>
> So you can unplug disk in the middle of the transfer,
> replug and transfer is continued?
I can do
umount /dev/hda
hdparm -b0 /dev/hda
hdparm -b1 /dev/hda
mount /dev/hda
and mount a different disk/cd/dvd. Its very nice on the thinkpads
In the 2.4 case its a bit messier than I suspect you can do in 2.6
because I can't rely on sane behaviour if I remove queues etc, instead
I keep the queue around so that to the block layer nothing disappears
and is freed up causing race issues but to the IDE layer the right stuff
happens (I think ;))
Alan
next prev parent reply other threads:[~2003-08-28 19:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-28 14:46 Bartlomiej Zolnierkiewicz
2003-08-28 15:13 ` Alan Cox
2003-08-28 15:47 ` Bartlomiej Zolnierkiewicz
2003-08-28 18:06 ` Alan Cox
2003-08-28 18:39 ` Bartlomiej Zolnierkiewicz
2003-08-28 19:42 ` Alan Cox [this message]
2003-08-29 1:19 ` Erik Andersen
2003-08-29 9:51 ` Alan Cox
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=1062099752.24978.45.camel@dhcp23.swansea.linux.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=B.Zolnierkiewicz@elka.pw.edu.pl \
--cc=andre@linux-ide.org \
--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
all inboxes | Powered by JetHome®