Change meaning of -swap option
authorWouter Verhelst <w@uter.be>
Sat, 3 Jan 2009 05:08:52 +0000 (06:08 +0100)
committerWouter Verhelst <w@uter.be>
Sat, 3 Jan 2009 05:08:52 +0000 (06:08 +0100)
commitd2c7d17d96e5f4e5196f60b4cec368c37d3450be
treec3152eadfa96cea1e1cf8d0d24afe40b39775ead
parent095bf43dcc0905e0ada608962144c15cc649b42c
Change meaning of -swap option

Change meaning of -swap option: rather than trying to use a kernel patch
which has been effectively dead since sometime around 2.1.something, do
an mlockall() so that the kernel won't throw us out.

The MCL_CURRENT | MCL_FUTURE bit might prove to be problematic, but if
so, we'll deal with it when we get there.
nbd-client.c