From owner-freebsd-arch@FreeBSD.ORG Wed Apr 16 06:23:10 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1937337B401 for ; Wed, 16 Apr 2003 06:23:10 -0700 (PDT) Received: from residue.ict.pwr.wroc.pl (residue.ict.pwr.wroc.pl [156.17.42.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB3B843F75 for ; Wed, 16 Apr 2003 06:23:08 -0700 (PDT) (envelope-from pepe@residue.ict.pwr.wroc.pl) Received: (from pepe@localhost) by residue.ict.pwr.wroc.pl (8.11.6+Sun/8.11.6) id h3GDL6V11797 for freebsd-arch@freebsd.org; Wed, 16 Apr 2003 15:21:06 +0200 (MET DST) Date: Wed, 16 Apr 2003 15:21:06 +0200 From: Piotr Patronik To: freebsd-arch@freebsd.org Message-ID: <20030416132106.GA11726@residue.ict.pwr.wroc.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i Subject: Maximal number of vn devices X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2003 13:23:10 -0000 Hi all, I don't know if this is right group... But: I have about 200-300 CD-ROM images, that I would like to mount and export over Samba for Windows clients. Now I do it with simple script: mknod /dev/fileN 43 N vnconfig /dev/fileN /somewhere/fileN mount -t cd9660 /dev/fileN /somewhere-else/fileN Problem is in generation of N numbers. Now, I generate them, and I get: 0x1000E0 0x1000E8 0x1000F0 0x1000F8 0x200010 0x200018 ... 0x800050 0x800058 0x800060 ... 0x2000010 vnconfig: VNIOCATTACH: Device busy (this message is generated by mount) Questions are: what is maximal number of devices I can configure, and what is the key to generate numbers for special files. TIA, Piotr Patronik