From owner-freebsd-current Wed Sep 2 07:33:59 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA28031 for freebsd-current-outgoing; Wed, 2 Sep 1998 07:33:59 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from adelphi.physics.adelaide.edu.au (adelphi.physics.adelaide.edu.au [129.127.36.247]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA28026 for ; Wed, 2 Sep 1998 07:33:56 -0700 (PDT) (envelope-from kkennawa@physics.adelaide.edu.au) Received: from bragg (bragg [129.127.36.34]) by adelphi.physics.adelaide.edu.au (8.8.8/8.8.8/UofA-1.5) with SMTP id AAA21841 for ; Thu, 3 Sep 1998 00:02:53 +0930 (CST) Received: by bragg; (5.65/1.1.8.2/05Aug95-0227PM) id AA18508; Thu, 3 Sep 1998 00:02:53 +0930 Date: Thu, 3 Sep 1998 00:02:52 +0930 (CST) From: Kris Kennaway X-Sender: kkennawa@bragg To: current@FreeBSD.ORG Subject: Creating a vn filesystem (fwd) Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG When I try the commands below (which apparently work on 2.2.6) I get the following error: [morden|root] 23:03 ~ disklabel /dev/rvn1 | disklabel -R -r vn1 /dev/stdin disklabel: ioctl DIOCGDINFO: Inappropriate ioctl for device sector size 0 vn1 is being used because vn0 is used as a swap device. My kernel has the following: pseudo-device vn 2 #Vnode driver (turns a file into a device) and is up-to-date with -current. Any ideas? Kris ---------- Forwarded message ---------- Date: Tue, 1 Sep 1998 12:32:34 -0500 From: Kevin Keyser To: kkennawa@physics.adelaide.edu.au Cc: questions@freebsd.org Subject: Re: Creating a vn filesystem > I'm trying to create a vn filesystem on my -current box, using the following: > > [morden|root] 0:13 ~ dd if=/dev/zero of=/d/bigfile bs=1024 count=204800 > 204800+0 records in > 204800+0 records out > 209715200 bytes transferred in 59.543914 secs (3522026 bytes/sec) > [morden|root] 0:15 ~ vnconfig -c /dev/vn1 /d/bigfile > (/dev/vn0 is being used as a swap file, hence /dev/vn1) > [morden|root] 0:17 ~ disklabel -e /dev/vn1 > (dumps me in vi with the following) > { normal looking disklabel } > > This seems okay to me - but upon writing and quitting, I get > > disklabel: Operation not supported by device > re-edit the label? [y]: The following works for me on 2.2.6R: dd if=/dev/zero of=vn0.file bs=1m count=200 vnconfig -c /dev/vn0 vn0.file disklabel /dev/rvn0 | disklabel -R -r vn0 /dev/stdin disklabel -r -e vn0 newfs /dev/rvn0a Maybe there's an easier way though... > Thanks, > > Kris Kevin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message