Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B UNSW 1.0 3/14/84; site qfdts.oz
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!munnari!basser!uqcspe!qfdts!phil
From: phil@qfdts.oz (Phil Chadwick)
Newsgroups: net.bugs.usg
Subject: Sys V r2 version 2 swap bug
Message-ID: <46@qfdts.oz>
Date: Thu, 4-Jul-85 22:07:13 EDT
Article-I.D.: qfdts.46
Posted: Thu Jul  4 22:07:13 1985
Date-Received: Sat, 6-Jul-85 10:11:56 EDT
Organization: Department of Forestry, Brisbane, Australia
Lines: 26

System V release 2 version 2 has a new command called swap
to configure extra swap areas into the system on the fly.
I just tried it.  Guess what happened?  "panic: IO err in swap".
Double checked everything and tried again.  Same result.

Then I found something very strange in the swap code in
the file physio.c!  The swap i/o is being done with a

	(*bdevsw[bmajor(swapdev)].d_strategy)(bp)

swapdev is an extern and reflects the device codes for the
*initially* configured swap device.  Now why are they using
the driver for the initially configured swap device to do the
i/o when the swap device may be anything configured into the
system with the swap command?

Has anyone got Sys V r2 v2 to swap on anything but the initially
configured swap device?  Will changing "swapdev" to "dev" fix
the problem?

----
Phil Chadwick		  Australia: (07) 2296500
Department of Forestry	  International: +61 7 2296500
PO Box 5		  ACSnet: phil@qfdts.oz
Brisbane, Roma Street	  ARPA: decvax!mulga!qfdts.oz!phil@UCB-VAX.ARPA
AUSTRALIA	4001	  UUCP: {decvax,vax135,eagle,pesnta}!mulga!qfdts.oz!phil