Re: swapctl: SWAP_STATS different to SWAP_NSWAP (2 != 3)
Thomas Klausner <[email protected]>
| Newsgroups | gmane.os.netbsd.current |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Feb 10, 2026 at 01:55:02PM +0100, Martin Husemann wrote: > On Tue, Feb 10, 2026 at 01:35:36PM +0100, Thomas Klausner wrote: > > How can that happen? > > Not sure, looks like the only possibility is the copyout() in > src/sys/uvm/uvm_swap.c:817 going wrong. > > Can you modify src/sbin/swapctl/swaplist.c to print errno in that > warnx() and see what comes out of that? I replaced warnx with warn, but errno was 0: swapctl: SWAP_STATS different to SWAP_NSWAP (1 != 3): Undefined error: 0 Thomas