Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Dec 2011 13:02:58 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Mike Clarke <jmc-freebsd2@milibyte.co.uk>
Cc:        freebsd-questions@freebsd.org, "Zane C. B-H." <v.velox@vvelox.net>
Subject:   Re: umass to /dev/da* mapping
Message-ID:  <alpine.BSF.2.00.1112071258570.70477@wonkity.com>
In-Reply-To: <201112071607.09728.jmc-freebsd2@milibyte.co.uk>
References:  <201112051708.16072.jmc-freebsd2@milibyte.co.uk> <alpine.BSF.2.00.1112070834530.68831@wonkity.com> <20111207095651.3688de01@vixen42.vulpes.vvelox.net> <201112071607.09728.jmc-freebsd2@milibyte.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 7 Dec 2011, Mike Clarke wrote:

> On Wednesday 07 December 2011, Zane C. B-H. wrote:
>
>> On Wed, 7 Dec 2011 08:39:30 -0700 (MST)
>>
>> Warren Block <wblock@wonkity.com> wrote:
>>> On Wed, 7 Dec 2011, Zane C. B-H. wrote:
>>>> Still you will want to investigate what I've mentioned. It will
>>>> drastically simplify permission stuff as well as make automatic.
>>>> The devfs stuff is just not boottime only, but will be applied to
>>>> any new device added etc post boot.
>>>
>>> Are you sure of that?  Seems like devfs permissions are only
>>> applied when devfs(8) apply/applyset commands are run, directly or
>>> through /etc/rc.d/devfs.
>>
>> Yeah, I am sure of that. It is what I have setup here.
>>
>> /etc/devfs.conf - This one only affects boot time stuff.
>>
>> /dec/devfs.rules - This one contains the rules will be applied during
>> and post boot. It will also require you to specify which to use in
>> "/etc/rc.conf" as this file can contain multiple rule sets.

Tested, and I agree.  It'll set permissions on dynamically added 
devices.  Sorry about that.

> But can I use that to dynamically set up my link to the new device when
> the memory stick is inserted?

No, devfs.rules can't run arbitrary code when a device is added. 
devd.conf is the place for that.  Actually, create a new .conf file in 
/etc/devd/ for your own customizations.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1112071258570.70477>