Bug 30556

Summary: vnconfig man page incorrect; functionality seems to be missing too
Product: Documentation Reporter: Vivek Khera <khera>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Vivek Khera 2001-09-13 19:20:01 UTC
	

The vnconfig man page gives these examples:

EXAMPLES
           vnconfig vn0c /tmp/diskimage

     Configures the vnode disk vn0c.

           vnconfig -e vn0c /var/swapfile swap

     Configures vn0c and enables swapping on it.


Trying the first one gives an error.  Apparently you can only vnconfig
the base device, vn0, not vn0c.  This leads us to the problem that the
feature mount=/path is useless, since you cannot do

 vnconfig vn0 /tmp/diskimage mount=/mnt

nor

 vnconfig -e vn0c /tmp/diskimage mount=/mnt

since the former is attempting to mount /dev/vn0 and the latter attempts to
vnconfig vn0c, both of which are not allowed.

Fix: 

change the docs, and remove the mount=XX options since they are useless, it
seems.
How-To-Repeat: 	
see above
Comment 1 Ceri Davies freebsd_committer freebsd_triage 2002-08-20 21:00:48 UTC
State Changed
From-To: open->closed

The examples in the manual work perfectly. 
/tmp/diskimage is assumed to be a diskimage, and therefore should 
exist before attempting to follow the examples.