Skip site navigation (1)Skip section navigation (2)
Date:      29 May 1999 12:04:06 +0200
From:      Dag-Erling Smorgrav <des@flood.ping.uio.no>
To:        "Andrey A. Chernov" <ache@nagual.pp.ru>
Cc:        current@FreeBSD.ORG
Subject:   Re: kvm_getswapinfo is broken
Message-ID:  <xzp1zg0nqeh.fsf@localhost.ping.uio.no>
In-Reply-To: "Andrey A. Chernov"'s message of "Wed, 26 May 1999 09:08:11 %2B0400"
References:  <19990526090810.A23737@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
"Andrey A. Chernov" <ache@nagual.pp.ru> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp1zg0nqeh.fsf>