Subject: Re: RAID & swap
To: Manuel Bouyer <>
From: Chuck Silvers <>
List: current-users
Date: 04/07/2000 09:24:07
I talked with greg about this some more after I put that comment in the PR.
the better idea we came up with was to put a hook in the raidframe code
to disable raidframe devices, basically a force-close kind of thing.
once a given device is disabled, it can resync parity and leave the disk
in a clean state.  this would be called from the reboot code after
unmounting filesystems.  doing it this way avoids the problems with running
out of memory that you'd have with the "swapctl -d" method.


On Fri, Apr 07, 2000 at 04:53:09PM +0200, Manuel Bouyer wrote:
> > > How hard would it be to add a shutdown hook to
> > > close the swap device(s) ?
> > 
> > Well, if it was really easy I'd have it done by now :)
> >From Audit-trail of PR#8933:
> Responsible-Changed-From-To: kern-bug-people->chs 
> Responsible-Changed-By: chs 
> Responsible-Changed-When: Wed Dec 1 20:38:31 PST 1999 
> Responsible-Changed-Why:  
> I'll get the "swapctl -d" code in eventually (hopefully soon 
> enough for 1.5, even!), which is some of what's required for this. 
> swapctl -d is here and works now. Is this what you needed ?
> --
> Manuel Bouyer, LIP6, Universite Paris VI. 
> --