From sam@ada.eu.org  Sat Apr  8 03:24:49 2000
Return-Path: <sam@ada.eu.org>
Received: from ada.eu.org (marvin.enst.fr [137.194.161.2])
	by hub.freebsd.org (Postfix) with ESMTP id 82F2037B8DA
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  8 Apr 2000 03:24:48 -0700 (PDT)
	(envelope-from sam@ada.eu.org)
Received: from antinea.enst.fr (antinea.enst.fr [137.194.160.145])
	by ada.eu.org (Postfix) with ESMTP id 2EFC819076
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  8 Apr 2000 12:24:47 +0200 (CEST)
Received: by antinea.enst.fr (Postfix, from userid 1000)
	id 8C809504; Sat,  8 Apr 2000 12:24:46 +0200 (CEST)
Message-Id: <20000408102446.8C809504@antinea.enst.fr>
Date: Sat,  8 Apr 2000 12:24:46 +0200 (CEST)
From: sam@ada.eu.org
Reply-To: sam@ada.eu.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: vnode devices reject disklabels
X-Send-Pr-Version: 3.2

>Number:         17859
>Category:       kern
>Synopsis:       vnode devices reject disklabels
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr  8 03:30:01 PDT 2000
>Closed-Date:    Sat Apr 8 04:06:39 PDT 2000
>Last-Modified:  Sat Apr  8 04:06:55 PDT 2000
>Originator:     Samuel Tardieu
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
TELECOM Paris
>Environment:
>Description:

	It looks like despites what the manpage reads, it is not possible
	to make a disklabel on a vnode device, either with a specified or
	with an automatic type.

>How-To-Repeat:

	% dd if=/dev/zero of=/var/tmp/floppy bs=1k count=1440
	% vnconfig -c /dev/vn0 /var/tmp/floppy
	% disklabel -w vn0 auto
	disklabel: ioctl DIOCGDINFO: Inappropriate ioctl for device
	disklabel: auto: unknown disk type
	% disklabel -w -r /dev/vn0 fd1440
	disklabel: ioctl DIOCWLABEL: Inappropriate ioctl for device

	The manpage for disklabel says that auto is fine with vnode
	devices, which is obviously not the case.

>Fix:


>Release-Note:
>Audit-Trail:

From: Poul-Henning Kamp <phk@critter.freebsd.dk>
To: sam@ada.eu.org
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/17859: vnode devices reject disklabels 
Date: Sat, 08 Apr 2000 12:33:31 +0200

 Read the vnconfig manpages.  VN devices have two modes: with or
 without disklabels.
 
 --
 Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
 phk@FreeBSD.ORG         | TCP/IP since RFC 956
 FreeBSD coreteam member | BSD since 4.3-tahoe    
 Never attribute to malice what can adequatly be explained by incompetence.
 
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Sat Apr 8 04:06:39 PDT 2000 
State-Changed-Why:  
resolved. 
>Unformatted:
