Subject: kern/30958: panic when using vnconfig -z without VND_COMPRESSION
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <juan@xtrarom.org>
List: netbsd-bugs
Date: 08/10/2005 04:15:00
>Number:         30958
>Category:       kern
>Synopsis:       panic when using vnconfig -z without VND_COMPRESSION
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 10 04:15:00 +0000 2005
>Originator:     Juan RP
>Release:        NetBSD 3.99.7
>Organization:
>Environment:
System: NetBSD Nocturno 3.99.7 NetBSD 3.99.7 (Nocturno) #37: Wed Aug 10 00:43:39 CEST 2005 juan@Nocturno:/home/juan/build/obj/sys/arch/i386/compile/Nocturno i386
Architecture: i386
Machine: i386
>Description:

	I was trying to mount a cloop2 image with vnconfig(1),
	but it crashed because my kernel was built without
	VND_COMPRESSION (I thought it was called VND_COMPRESSED).

[juan@Nocturno][~]> cat /kern/msgbuf|grep panic
panic: lockmgr: locking against myself
panic(c053a700,cd807a48,c031c26e,5,cda2fbe0) at netbsd:panic+0x12e
[juan@Nocturno][~]>

>How-To-Repeat:
	$ makefs -t ffs foo.fs /foo
	$ vndcompress foo.zfs foo.fs
	$ vnconfig -z vnd0 foo.zfs

	[panic]
>Fix: