From owner-freebsd-questions Thu Aug 17 19:12:44 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.popsite.net (smtp.popsite.net [216.126.128.17]) by hub.freebsd.org (Postfix) with ESMTP id BE43C37BB71 for ; Thu, 17 Aug 2000 19:10:31 -0700 (PDT) Received: from javagear.com (5613-004.001.popsite.net [64.24.60.4]) by smtp.popsite.net (Postfix) with ESMTP id 1DC3917A for ; Thu, 17 Aug 2000 21:10:20 -0500 (CDT) Message-ID: <399C9B3D.92282FC0@javagear.com> Date: Thu, 17 Aug 2000 21:11:09 -0500 From: Paul Becke Reply-To: pbecke@javagear.com X-Mailer: Mozilla 4.72 [en] (Win98; U) X-Accept-Language: en,pdf MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: vn - vnode disk driver help needed Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am trying to create a disk interface to a file using the vn vnode driver and vnconfig utility, but I run into difficulty with the disklabel utility. I have added the following line to /etc/disktab mydisk:ty=simulated:se#512:nt#3:ns#15:nc#80:pa#3600:oa#0:ba#4096:fa#512:ta=4.2BSD:pc#3600:oc#0: I create the file myfile as follows dd if=/dev/zero of=myfile.fs count=3600 output: 3600+0 records in 3600+0 records out 1843200 bytes transferred in 0.996005 secs (1850593 bytes/sec) I then use vnconfig to configure the /dev/vn0c vnconfig -v /dev/vn0c myfile.fs mount=/mnt output: /dev/vn0c: 1843200 bytes on myfile.fs I then use disklabel but I get an error. disklabel -w -r /dev/vn0c mydisk output: disklabel: ioctl DIOCWLABEL: Inappropriate ioctl for device I am using FreeBSD version 3.4 with the GENERIC kernel with the exception that I have added the following line to the config file when I build the kernel. pseudo-device vn 4 Can anyone help me out and tell me what I might be doing wrong.? Thanks Paul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message