|
From: Matthew B. <ma...@by...> - 2004-12-09 11:45:03
|
Here's the promised patch against a recent 2.01 snapshot to allow you to
send sysrqs to running Linux kernels. I went with Keir's suggestion of
adding a sub-reason code to the shutdown message with a 1-byte payload
specifying which key was pressed. Hope it's acceptable for the main
tree; I will happily alter it to spec if any of the maintainers have
suggestions for better structuring it.
It adds the CONFIG_MAGIC_SYSRQ option to the Linux kernel which you need
to turn on for a guest to work with it, then you can just do e.g. "xm
sysrq domainname s" to sync your discs.
cheers,
--
Matthew Bloch Bytemark Hosting
http://www.bytemark.co.uk/
phone UK: 0845 004 3 004 US: 1-877 BYTEMAR
Dedicated Linux hosts from 15ukp ($26) per month
|