Subject: misc/36212: Hanging while using a vnode disk
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <uair00@gmail.com>
List: netbsd-bugs
Date: 04/25/2007 12:10:01
>Number: 36212
>Category: misc
>Synopsis: Hanging while using a vnode disk
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 25 12:10:00 +0000 2007
>Originator: Hugo Rivera
>Release: 3.1
>Organization:
>Environment:
NetBSD janko 3.1 NetBSD 3.1 (JANKO64) #0: Fri Apr 20 17:50:21 BOT 2007 root@janko:/usr/src/sys/arch/amd64/compile/JANKO64 amd64
>Description:
NetBSD completely hangs up while copying files from anywhere to a mounted vnode disk configured using a FAT disk image file; one must reboot the system (using the RESET button) because nothing works anymore.
Here's my fdisk output:
Disk: /dev/rvnd0d
NetBSD disklabel disk geometry:
cylinders: 488, heads: 64, sectors/track: 32 (2048 sectors/cylinder)
total sectors: 1000000
BIOS disk geometry:
cylinders: 489, heads: 64, sectors/track: 32 (2048 sectors/cylinder)
total sectors: 1000000
Partition table:
0: Primary DOS with 32 bit FAT - LBA (sysid 12)
start 32, size 999968 (488 MB, Cyls 0-488/18/1)
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Bootselector disabled.
and the disklabel output:
type: vnd
disk: vnd
label: VirtualFAT
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 488
total sectors: 1000000
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
5 partitions:
# size offset fstype [fsize bsize cpg/sgs]
d: 1000000 0 unused 0 0 # (Cyl. 0 - 488*)
e: 999968 32 MSDOS # (Cyl. 0*- 488*)
>How-To-Repeat:
- Create a FAT disk image file:
dd if=/dev/zero of=vFAT.img bs=1024 count=500000
vnconfig -vc vnd0 vFAT.img
fdisk -u vnd0
CREATE A DOS PARTITION (ID 12)
disklabel -e -I
newfs_msdos -F32 /dev/vnd0e
mount -t msdos -o rw /dev/vnd0e myFAT
cp anything_you_want myFAT
It should be hanged by now
>Fix:
None; maybe I am doing something wrong, but I do not think that that should cause such a severe hang up.