Date: Fri, 1 Dec 1995 04:20:05 -0800 From: Bruce Evans <bde@zeta.org.au> To: freebsd-bugs Subject: Re: bin/854: swapinfo shows incorrect information for vnconfig'd swap. Message-ID: <199512011220.EAA19492@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR bin/854; it has been noted by GNATS.
From: Bruce Evans <bde@zeta.org.au>
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
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512011220.EAA19492>
