Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Feb 2008 16:08:55 +0100
From:      Dominic Fandrey <kamikaze@bsdforen.de>
To:        David Wolfskill <david@catwhisker.org>,  Dominic Fandrey <kamikaze@bsdforen.de>, "Carlos A. M. dos Santos" <unixmania@gmail.com>,  freebsd-stable@freebsd.org
Subject:   Re: RELENG_7: interrupt eating whole cpu core
Message-ID:  <47AC7087.20109@bsdforen.de>
In-Reply-To: <20080208143627.GL53191@bunrab.catwhisker.org>
References:  <47A9F835.1060200@bsdforen.de> <47AA0696.5020109@bsdforen.de> <7872AB6E-21DA-4E2D-93C0-D07CFA3A7E47@mac.com> <47AA0E3E.4020304@bsdforen.de> <e71790db0802071822l661bdcb8s6dfe5b94be11f0dc@mail.gmail.com> <47ABF66E.4040807@bsdforen.de> <e71790db0802080543g54d27bb8nfdc33e342f982b4@mail.gmail.com> <47AC65E5.8080604@bsdforen.de> <20080208143627.GL53191@bunrab.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help
David Wolfskill wrote:
> On Fri, Feb 08, 2008 at 03:23:33PM +0100, Dominic Fandrey wrote:
>> Carlos A. M. dos Santos wrote:
>>> On Feb 8, 2008 4:27 AM, Dominic Fandrey <kamikaze@bsdforen.de> wrote:
>>>> ...
>>>> I put the following into my rc.conf:
>>>> # Set mode for CD/DVD drive.
>>>> /sbin/atacontrol mode acd0 2>&1 | /usr/bin/grep PIO > /dev/null 2>&1 \
>>>>        && /sbin/atacontrol mode acd0 UDMA33
>>> Do not put this in rc.conf. It will be executed again each time a
>>> script in /etc/rc.d source rc.conf to obtain the configuration
>>> variables.
>> Hence the check, weather the drive is in PIO mode or not. The way I 
>> understand the rc(8) manual page, the same is true for rc.local.
>> ...
> 
> As I learned some years ago, rc.conf is for configuration
> variable-setting, not executable code.  Ref. (from rc.conf(5)):

Why care about correctly implementing a sloppy solution? I'd rather have a 
good solution correctly implemented. For me that means offering the 
possibility to tweak the ata mode for each device in the /boot/device.hints file.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47AC7087.20109>