From owner-freebsd-current@FreeBSD.ORG Mon Aug 29 22:25:45 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B066F16A41F for ; Mon, 29 Aug 2005 22:25:45 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D88143D5E for ; Mon, 29 Aug 2005 22:25:45 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j7TMPicc006480; Mon, 29 Aug 2005 15:25:44 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j7TMPiMT006478; Mon, 29 Aug 2005 15:25:44 -0700 Date: Mon, 29 Aug 2005 15:25:44 -0700 From: Brooks Davis To: Rainer Duffner Message-ID: <20050829222544.GB31841@odin.ac.hmc.edu> References: <43138A6B.30108@ultra-secure.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dc+cDN39EJAMEtIO" Content-Disposition: inline In-Reply-To: <43138A6B.30108@ultra-secure.de> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-current@freebsd.org Subject: Re: devfs.conf & usb-thumbdrives X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 22:25:45 -0000 --dc+cDN39EJAMEtIO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 30, 2005 at 12:21:31AM +0200, Rainer Duffner wrote: > Hi, >=20 > I recently bought some Samsung USB-stick: > umass0: 0 USB DRIVE, rev 2.00/2.00, addr 2 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: < USB DRIVE 2.00> Removable Direct Access SCSI-2 device > da0: 40.000MB/s transfers > da0: Attempt to query device size failed: UNIT ATTENTION, Not ready to=20 > ready change, >=20 >=20 > it 1 GB. >=20 > I created a devfs.conf-entry like this: > lbe# egrep da0 /etc/devfs.conf > perm da0 770 > perm da0s1 770 >=20 > but the permissions are still like this: > lbe# ll /dev/da0* > crw-r----- 1 root operator 11, 112 29 Aug 23:13 /dev/da0 > crw-r----- 1 root operator 11, 115 30 Aug 00:15 /dev/da0s1 >=20 > I first need to restart devfs: > lbe# /etc/rc.d/devfs restart > lbe# ll /dev/da0* > crwxrwx--- 1 root operator 11, 112 29 Aug 23:13 /dev/da0 > crwxrwx--- 1 root operator 11, 115 29 Aug 23:13 /dev/da0s1 >=20 > Why does it ignore these settings until a restart of the service? /etc/devfs.conf is a set of rules to be applied at startup, not a set of rules to apply when creating devices. For that, you want devfs.rules(5). -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --dc+cDN39EJAMEtIO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDE4tnXY6L6fI4GtQRAj9uAJ9gPTEftpD9fP84mEDuq9bZUneK5ACfefSN t4NfvYSfGLpVnF18Th7Tm7k= =sKRL -----END PGP SIGNATURE----- --dc+cDN39EJAMEtIO--