From owner-freebsd-current Sat May 29 3: 5:14 1999 Delivered-To: freebsd-current@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 0044615073 for ; Sat, 29 May 1999 03:05:10 -0700 (PDT) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.1) id MAA11787; Sat, 29 May 1999 12:04:07 +0200 (CEST) (envelope-from des) To: "Andrey A. Chernov" Cc: current@FreeBSD.ORG Subject: Re: kvm_getswapinfo is broken References: <19990526090810.A23737@nagual.pp.ru> From: Dag-Erling Smorgrav Date: 29 May 1999 12:04:06 +0200 In-Reply-To: "Andrey A. Chernov"'s message of "Wed, 26 May 1999 09:08:11 +0400" Message-ID: Lines: 22 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Andrey A. Chernov" writes: > Just check 'swapinfo' in recent -current, it shows "/dev/(null)" as swap > device, it means that devinfo() call in kvm_getswapinfo() returns NULL, > i.e. called with wrong argument which is swinfo.sw_dev Other interesting swapinfo(8) behaviour: root(yeshs-3)--# uname -a FreeBSD yeshs-3.yes.no 3.1-19990505-STABLE FreeBSD 3.1-19990505-STABLE #1: Wed May 19 01:13:59 CEST 1999 root@yeshs-3.yes.no:/usr/src/sys/compile/YESHS i386 root(yeshs-3)--# swapinfo Device 1K-blocks Used Avail Capacity Type /dev/od0b 524288 0 524160 0% Interleaved /dev/da1b 524288 0 524160 0% Interleaved /dev/da2b 524288 0 524160 0% Interleaved Total 1572480 0 1572480 0% (before you ask - no, this machine does *not* swap to a magneto- optiocal disk, and magneto-optical devices aren't named od any more) DES -- Dag-Erling Smorgrav - des@flood.ping.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message