From owner-freebsd-bugs Fri Dec 1 04:20:10 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id EAA19573 for bugs-outgoing; Fri, 1 Dec 1995 04:20:10 -0800 Received: (from gnats@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id EAA19492 ; Fri, 1 Dec 1995 04:20:05 -0800 Date: Fri, 1 Dec 1995 04:20:05 -0800 Message-Id: <199512011220.EAA19492@freefall.freebsd.org> To: freebsd-bugs Cc: From: Bruce Evans Subject: Re: bin/854: swapinfo shows incorrect information for vnconfig'd swap. Reply-To: Bruce Evans Sender: owner-bugs@FreeBSD.ORG Precedence: bulk The following reply was made to PR bin/854; it has been noted by GNATS. From: Bruce Evans To: FreeBSD-gnats-submit@freebsd.org, jkh@mimsy.cdrom.com Cc: Subject: Re: bin/854: swapinfo shows incorrect information for vnconfig'd swap. Date: Fri, 1 Dec 1995 23:06:21 +1100 >On a system with swap space added via vnconfig, swapinfo prints an >entry like this for the vn0 device: >/dev/?? 65536 0 65472 0% Interleaved >>How-To-Repeat: > dd if=/dev/zero of=/usr/swapfile bs=4k count=16384 > vnconfig /dev/vn1 /usr/swapfile ^0 > swapon /dev/vn1 ^0 This is probably because you don't have /dev/vn0b and/or because you didn't specify swapping on the `b' partition. Unless slicing is enabled, the slice _and_ partition bits in the minor number are ignored, so /dev/vn0 is a bogus alias for /dev/vn0b and swapping on /dev/vn0 may work for bogus reasons. If slicing is enabled, then vnsize() is broken - it returns the full size, not the partition size. Bruce