From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 20 13:24:30 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 465EF16A4CE for ; Thu, 20 Jan 2005 13:24:30 +0000 (GMT) Received: from node15.coopprint.com (node15.cooperativeprinting.com [208.4.77.15]) by mx1.FreeBSD.org (Postfix) with SMTP id 5EFD743D46 for ; Thu, 20 Jan 2005 13:24:29 +0000 (GMT) (envelope-from ryans@gamersimpact.com) Received: (qmail 87672 invoked by uid 0); 20 Jan 2005 13:22:31 -0000 Received: from unknown (HELO ?192.168.0.5?) (63.231.157.250) by node15.coopprint.com with SMTP; 20 Jan 2005 13:22:31 -0000 Message-ID: <41EFB118.3070108@gamersimpact.com> Date: Thu, 20 Jan 2005 07:24:40 -0600 From: Ryan Sommers User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bram Van Steenlandt References: <41EF810B.7060301@no-wackos.com> In-Reply-To: <41EF810B.7060301@no-wackos.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: device id question (usb and scsi) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2005 13:24:30 -0000 Bram Van Steenlandt wrote: > Hi, > > I've been having some problems with the following: > ex1: I have two scsi scanners and I use sane to scan all works well my > two scanners are /dev/pass0 and /dev/pass1 however when one of them is > turned of the device are renumbered (wich is a problem because then I > have to change the sane configuration files) > > ex2: Same thing as above happens with usb printer, I work with cups and > printers get mixed from the moment you leave one of. > > I have a support pack for cups and they tell my there is no other > solution then to move to linux or osx because they have device id > numbers (they save the number kinda like a dhcp server and fixed ip > adresses). Or that I have to wait untill freebsd implements this. > > I am a very FreeBSD minded person (but also a newbie) and I find it very > hard to believe that such an advanced OS does not have some solution for > this. > > So if anybody has any hints or solutions please send them. The problem is that devfs automatically assigns numbers based on when devices appear. In most cases this is a Godsend for system admins. In your case though, where devices come and go but need static naming, it doesn't work so well. Unfortunately I'm not a devfs guru. However, you might have a look at the devfs man page. You can add rule-sets to the devfs configuration file in /etc. If I remember correctly this can even work off the device ID tag. What you would do is add rules that create symlinks between the devfs dynamic rules and static symlinks you name. -- Ryan Sommers ryans@gamersimpact.com