Go to the first, previous, next, last section, table of contents.
No, don't do this. At best you will get the error `cannot find swap signature'. At worst, you will crash your computer.
The main reason that this doesn't work is that the swap routines
currently use bmap
, which isn't supported for compressed
clusters.
I can see that it would be useful if we could get this to work, though we'd have to be careful to avoid deadlocks (e.g. e2compr routines trying to allocate memory, when there isn't any memory until something's been swapped out). I don't think we can very well guarantee that e2compr won't try to make any memory requests, so it's more a matter of making sure that the memory management code doesn't wait until there's nothing left before trying to use e2compr services. Thus I think that this feature will have to wait until e2compr is accepted into the standard kernel, since memory management code changes quite frequently.
We'd also have to handle the case where the kernel is trying to write to the swap file but there's not enough disk space to hold the data.
Go to the first, previous, next, last section, table of contents.