tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: unconfiguring swap at shutdown

On Sat, Aug 30, 2008 at 04:33:28PM -0400, Christos Zoulas wrote:
> Hello,
> The following patch removes swap devices at shutdown. This is useful for
> example when typing reboot and having a raidframe partition... Comments?

Can it be done as a shutdown hook per swap dev instead, or does that happen
too late in the shutdown process?

It feels like it would be more elegant to have each thing that needs to be
undone at shutdown be registered in an ordered list, so you could do stuff
like: mount a raid fs, vnconfig a couple devs using files on the raid, mount
another raid using those devs, vnconfig a file within that, reboot; 
and have it all nicely un-do itself.


Home | Main Index | Thread Index | Old Index