Re: kvm_getswapinfo is broken

1999-05-29 Thread Dag-Erling Smorgrav
Andrey A. Chernov a...@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:

Re: savecore too (Re: kvm_getswapinfo is broken)

1999-05-29 Thread Bruce Evans
Just found that savecore is broken in the same way. What is proper procedure to fix it? I.e. is it must be fixed in the kernel, leaving userland programs as is or in userland, leaving kernel as is? The kernel needs to maintain (or create as necessary for return by sysctl()) udev_t versions of

Re: savecore too (Re: kvm_getswapinfo is broken)

1999-05-29 Thread Poul-Henning Kamp
In message 199905291221.waa28...@godzilla.zeta.org.au, Bruce Evans writes: Just found that savecore is broken in the same way. What is proper procedure to fix it? I.e. is it must be fixed in the kernel, leaving userland programs as is or in userland, leaving kernel as is? The kernel needs to

savecore too (Re: kvm_getswapinfo is broken)

1999-05-28 Thread Andrey A. Chernov
On Thu, May 27, 1999 at 02:09:14AM +0400, Dmitrij Tejblum wrote: This is a known problem. It is because dev_t in kernel and dev_t and userland are now different things. This is worse on the alpha, where they also have different sizes. So, on the alpha, the numbers are broken too, not just

Re: kvm_getswapinfo is broken

1999-05-26 Thread Matthew D. Fuller
On Tue, May 25, 1999 at 11:38:38PM -0600, a little birdie told me that Kenneth D. Merry remarked {panzer:/usr/home/ken:2:0} pstat -s Device 1K-blocks UsedAvail Capacity Type /dev/(null)3275520 327552 0%Interleaved /dev/(null)3930880 393088

Re: kvm_getswapinfo is broken

1999-05-26 Thread Dmitrij Tejblum
Andrey A. Chernov wrote: 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 This is a known problem. It is because dev_t in kernel and dev_t and

kvm_getswapinfo is broken

1999-05-25 Thread Andrey A. Chernov
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 Fix it, please. -- Andrey A. Chernov http://nagual.pp.ru/~ache/ MTH/SH/HE S-- W-- N+ PEC+ D A a++

Re: kvm_getswapinfo is broken

1999-05-25 Thread Sheldon Hearn
On Wed, 26 May 1999 09:08:11 +0400, Andrey A. Chernov wrote: 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 Are you sure it isn't simply

Re: kvm_getswapinfo is broken

1999-05-25 Thread Kenneth D. Merry
Sheldon Hearn wrote... On Wed, 26 May 1999 09:08:11 +0400, Andrey A. Chernov wrote: 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

Re: kvm_getswapinfo is broken

1999-05-25 Thread Andrey A. Chernov
On Wed, May 26, 1999 at 07:33:57AM +0200, Sheldon Hearn wrote: On Wed, 26 May 1999 09:08:11 +0400, Andrey A. Chernov wrote: 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