From owner-freebsd-fs@FreeBSD.ORG Tue Jun 17 20:17:09 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2513DF4B; Tue, 17 Jun 2014 20:17:09 +0000 (UTC) Received: from mail.feld.me (mail.feld.me [66.170.3.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.feld.me", Issuer "Gandi Standard SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9E12928D3; Tue, 17 Jun 2014 20:17:08 +0000 (UTC) Received: from mail.feld.me (mail.feld.me [66.170.3.6]); by mail.feld.me (OpenSMTPD) with ESMTP id 11334870; Tue, 17 Jun 2014 15:17:04 -0500 (CDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=feld.me; h=mime-version :content-type:date:from:to:cc:subject:in-reply-to:references :message-id:sender; s=blargle2; bh=3VcTCrsluZB2jvIvBaIlFmMGra8=; b= TJAKJxzptFIRiOeKh0c3pIL0XFb82ajLu3bAZElNglw7wOxgAKGv2ngbB5HAuU89 ZfOzc/AN4CdQyZwQxwPxo1Wz3bxWTZmIjw6cyZ8NKU0pIuAWd5FFvoGnD6pQVn1Y a4+yCFI3XFYY4WmeanRx0ZJrW0C7J77HnivunCm/NBKmTA/xpStr7DKssnM4+8yM VjOcWgf79G/YJ873zsEms16y7zI1YTJ4k+Yofwn50SiYHbt0/CtY9/zHBDeG832q sfHC6vC14y4VsmCh+EGe9+E3dIwyJjMOnYQx17VndIYKDf+Ymnthni4ZCxLKidgh 2J72GzmSPJPr0JlYGQomvw== DomainKey-Signature: a=rsa-sha1; c=nofws; d=feld.me; h=mime-version :content-type:date:from:to:cc:subject:in-reply-to:references :message-id:sender; q=dns; s=blargle2; b=aMsQEf6Sf22zEvtA7sSIxKJ XRvs1XMDnha7t/OnCp+rxg6PUVGM1nJdSvDeYFWa+470pncjInk+5ii55ZnV6TH/ RvOXUoYGnSiFiis1yukCYCvOFPQv4mp5zmszOMmAnsI504mfAq6tyhlqBkgs7rC4 Jv3fLPtSXRgHnmnSQ0vrMSBN1zB5iAuyFZuk0wkVmmDlC4nqITBicCvulRubgsb7 aao6qFzH7obOqgEgFUbV8Or/AYFpJNEmG5Yyx5pi+G3Bhdl6pZuHBb8xizVNT51Z fpmctTYM/gAEcR1Fzws2QTjiCNFpaoTDfJiEj5VuIVf9rTtWx/pMeZl4XE7IzQg= = Received: from mail.feld.me (mail.feld.me [66.170.3.6]); by mail.feld.me (OpenSMTPD) with ESMTP id 857238bd; Tue, 17 Jun 2014 15:17:04 -0500 (CDT) Received: from feld@feld.me by mail.feld.me (Archiveopteryx 3.2.0) with esmtpa id 1403036223-26378-26375/5/5; Tue, 17 Jun 2014 20:17:03 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Date: Tue, 17 Jun 2014 15:17:03 -0500 From: Mark Felder To: Sami Halabi Subject: Re: ZFS auto online In-Reply-To: References: <7781CE90-D672-4A55-B7E9-47A48EA146E4@helenius.fi> <308a6f01436240e060878bb0620d0946@mail.feld.me> Message-Id: X-Sender: feld@FreeBSD.org User-Agent: Roundcube Webmail/1.0.1 Sender: feld@feld.me Cc: freebsd-fs@freebsd.org, Petri Helenius , owner-freebsd-fs@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2014 20:17:09 -0000 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.