From owner-freebsd-hackers Sun Nov 17 5:29:58 2002 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 95A0537B404 for ; Sun, 17 Nov 2002 05:29:57 -0800 (PST) Received: from majordomo.vol.cz (smtp4.vol.cz [195.250.128.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CCC243E4A for ; Sun, 17 Nov 2002 05:29:56 -0800 (PST) (envelope-from dan@obluda.cz) Received: from obluda.cz (xkulesh.vol.cz [195.250.154.106]) by majordomo.vol.cz (8.12.6/8.12.6) with ESMTP id gAHDTseG027626; Sun, 17 Nov 2002 14:29:54 +0100 (CET) (envelope-from dan@obluda.cz) Message-ID: <3DD79902.7060106@obluda.cz> Date: Sun, 17 Nov 2002 14:26:26 +0100 From: Dan Lukes User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2b) Gecko/20021106 X-Accept-Language: en, cs MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Cc: dima@sinp.msu.ru Subject: Re: active vn-devices References: <20021115105829.S500-100000@localhost> <20021115084206.GB29453@sunbay.com> In-Reply-To: <20021115105829.S500-100000@localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ruslan Ermilov wrote, On 11/15/02 09:42: > > How can I list active (i.e. configured with vnconfig) /dev/vn* devices? > > > No way. Tricky way. Try to configure each vn device - with NO file name requesting NEGATIVE size. If you got EBUSY, the device is configured. If you got EDOM, the device is free. You can also try attach an EACCESS or EPERM unaccesible file. Dan -- Dan Lukes tel: +420 2 21914205, fax: +420 2 21914206 root of FIONet, KolejNET, webmaster of www.freebsd.cz AKA: dan@obluda.cz, dan@freebsd.cz,dan@kolej.mff.cuni.cz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message