public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Jackson <jerj@coplanar.net>
To: Eduard Hasenleithner <eduardh@aon.at>, linux-kernel@vger.kernel.org
Subject: Re: How to set hdparms for ide-scsi devices on devfs?
Date: Wed, 28 Feb 2001 22:35:33 -0500	[thread overview]
Message-ID: <3A9DC385.130F9ACE@coplanar.net> (raw)


Eduard Hasenleithner wrote:

> Sorry, if this issue was already discussed in lkml. I didn't find
> a reference to this at www.geocrawler.com
>
> My Problem:
> I want to set the unmaskirq and dma -flag for my ide cd-recorder.
> The Problem is, that devfs creates no ide device, but only
> the /dev/scsi/../{cd,general} devices are created. And hdparm
> don't accepts this devices for setting the ide-parameters.
>
> My current workaround is to create a /dev/hd? device "by hand"
> at system startup. This is not very beautiful. Furthermore, if
> the device numbers in devfs are deactivated, this won't work
> anymore.
>
> I can live with my current solution. But i would be very happy
> if someone can present a clean solution.
>
> I posted this message intentionally not on the devfs mailing list
> as i think this problem is related to accessing the same device
> through different /dev entries. Under devfs, the /dev/ide/...
> device node gets allocated after the corresponding ide-xx.o has
> been loaded. But this is not possible with ide-scsi claiming
> the device :(
>
> Thanks in advance

workaround - before ide-scsi is loaded in boot sequence
(finding is left as an exercise to the reader :) do:

modprobe ide-cd
hdparm -u 1 -d 1 /dev/xxx
rmmod ide-cd

might have to do near top of /etc/rc.d/rc.sysinit under redhat,
but this is good since problems will happen before root filesystem
is remounted read-write, so any problems with hdparm settings
won't mess up disk.




             reply	other threads:[~2001-03-01  3:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-01  3:35 Jeremy Jackson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-02-28 21:48 How to set hdparms for ide-scsi devices on devfs? Eduard Hasenleithner
2001-03-01 11:10 ` Andre Hedrick
2001-03-02  8:48   ` Eduard Hasenleithner
2001-03-02 12:08     ` Wakko Warner
2001-03-02 14:03       ` Jeremy Jackson
2001-03-02 14:21         ` Jens Axboe
2001-03-02 21:39       ` Andre Hedrick

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=3A9DC385.130F9ACE@coplanar.net \
    --to=jerj@coplanar.net \
    --cc=eduardh@aon.at \
    --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