Date: Thu, 17 Aug 2000 21:11:09 -0500 From: Paul Becke <pbecke@javagear.com> To: freebsd-questions@FreeBSD.ORG Subject: vn - vnode disk driver help needed Message-ID: <399C9B3D.92282FC0@javagear.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?399C9B3D.92282FC0>