Subject: bin/26911: vndconfig not working properly
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <aniou@smutek.pl>
List: netbsd-bugs
Date: 09/11/2004 18:22:23
>Number:         26911
>Category:       bin
>Synopsis:       vndconfig not working properly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 11 18:23:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Piotr Meyer
>Release:        NetBSD 2.0_BETA
>Organization:
>Environment:
NetBSD czyzyk.smutek.pl 2.0_BETA NetBSD 2.0_BETA (CZYZYK) #1: Wed Aug 18 20:28:05 CEST 2004  root@czyzyk.smutek.pl:/usr/src/sys/arch/i386/compile/CZYZYK i386

>Description:
When I try to mount floppy image through vnd I found some strange
behavior - like vnconfig try configure real device instead image. Example:

# mount
/dev/wd0a on / type ffs (local)
/dev/wd0g on /usr type ffs (soft dependencies, local)
mfs:275 on /tmp type mfs (synchronous, local)
[...]

# vnconfig -l
vnd0: not in use
vnd1: not in use
vnd2: not in use
vnd3: not in use

# vnconfig -v -c vnd0 /tmp/boot.img
/dev/rvnd0d: 1474560 bytes on /tmp/boot.img

# mount /dev/vnd0a /mnt/floppy/
mount: cannot open `/dev/vnd0a': Device not configured

# vnconfig -l
vnd0: dev 255,0 inode 4
vnd1: not in use
vnd2: not in use
vnd3: not in use

# vnconfig -v -c vnd1 /boot.img    
/dev/rvnd1d: 1474560 bytes on /boot.img

# vnconfig -v -c vnd2 /usr/boot.img 
/dev/rvnd2d: 1474560 bytes on /usr/boot.img

# vnconfig -l
vnd0: dev 255,0 inode 4
vnd1: / (/dev/wd0a) inode 9
vnd2: /usr (/dev/wd0g) inode 3596
vnd3: not in use

# vnconfig -v -u vnd0
/dev/rvnd0d: cleared

# vnconfig -v -u vnd1
/dev/rvnd1d: cleared

# vnconfig -v -u vnd2
/dev/rvnd2d: cleared

# vnconfig -l
vnd0: not in use
vnd1: not in use
vnd2: not in use
vnd3: not in use

In my logs, last succesfull usage of vnconfig was (at least) at 2004-03-16. 
>How-To-Repeat:
Use vnconfig to mount some images...
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: