Sys V r2 version 2 swap bug

Phil Chadwick phil at qfdts.oz
Fri Jul 5 12:07:13 AEST 1985


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 at qfdts.oz
Brisbane, Roma Street	  ARPA: decvax!mulga!qfdts.oz!phil at UCB-VAX.ARPA
AUSTRALIA	4001	  UUCP: {decvax,vax135,eagle,pesnta}!mulga!qfdts.oz!phil



More information about the Net.bugs.usg mailing list