Date: Tue, 17 Jun 2014 15:17:03 -0500 From: Mark Felder <feld@freebsd.org> To: Sami Halabi <sodynet1@gmail.com> Cc: freebsd-fs@freebsd.org, Petri Helenius <petri@helenius.fi>, owner-freebsd-fs@freebsd.org Subject: Re: ZFS auto online Message-ID: <dfbf9656d1a1da253127c52bf332b1ea@mail.feld.me> In-Reply-To: <CAEW%2BogbfEFvfVLcxBCQcp59Bg-TeGO09pJhVb_5c9Zyv3_ER1A@mail.gmail.com> References: <7781CE90-D672-4A55-B7E9-47A48EA146E4@helenius.fi> <308a6f01436240e060878bb0620d0946@mail.feld.me> <CAEW%2BogbfEFvfVLcxBCQcp59Bg-TeGO09pJhVb_5c9Zyv3_ER1A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2014-06-17 14:53, Sami Halabi wrote: > Hi, > Waiting for zfsd and pray not help yet.. > Is there any working devd script that can be used as a reference. > in my /usr/local/etc/devd/ I have a virtualbox.conf file with this in it: # zalman notify 50 { match "system" "USB"; match "subsystem" "DEVICE"; match "type" "ATTACH"; match "vendor" "0x0928"; action "chown feld:feld /dev/$cdev"; }; This recognizes a zalman USB drive by its vendor ID when devd sees it is attached and runs that chown command. I'm sure you could tweak this to your needs.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dfbf9656d1a1da253127c52bf332b1ea>