Subject: kern/18116: vnd driver flush to target file is broken
To: None <gnats-bugs@gnats.netbsd.org>
From: None <manu@netbsd.org>
List: netbsd-bugs
Date: 08/30/2002 03:18:09
>Number:         18116
>Category:       kern
>Synopsis:       vnd driver flush to target file is broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 30 03:19:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Emmanuel Dreyfus
>Release:        NetBSD-1.5.3
>Organization:
The NetBSD Project
>Environment:
NetBSD crapulax 1.5.3 NetBSD 1.5.3 (GENERIC) #34: Mon Jul  1 21:36:06 CEST 2002     he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC i386

>Description:
When the vnd driver is used on a file, the file is not updated after the umounc, not after the vnconfig -u. sync does not help.
The problem also exists on the 1.6 branch.
>How-To-Repeat:
#!/bin/sh
vnconfig -u /dev/vndO
rm -f /tmp/ramdisk /tmp/ramdisk2
dd if=/dev/zero of=/tmp/ramdisk bs=1k count=8192
md5 /tmp/ramdisk
vnconfig /dev/vnd0 /tmp/ramdisk
export EDITOR=/bin/ed
disklabel -I -e /dev/vnd0 << EOT
/^  b:/
d
d
d
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: