Add self address to the swap file header
commit0789e6b52391ee9ea8b89061b4b75156ea4d0b69
authorPetr Tesarik <petr@tesarici.cz>
Mon, 8 Oct 2012 13:04:32 +0000 (8 15:04 +0200)
committerPetr Tesarik <petr@tesarici.cz>
Tue, 9 Oct 2012 03:50:39 +0000 (9 05:50 +0200)
tree595132d11d6952f280670ad1f2a3ce86fc50c173
parent9cb1a949493d224c4bde4241cc8d3c420038ffb1
Add self address to the swap file header

With the final EOF block embedded inside the header, it is necessary
to store the address of that header.

You might be tempted to re-organize the swapfile so that the first
maps starts at file offset 0, and put the header to the first data
block, because the block size is not constant on some systems, so
you would not be able to locate the file header then.
libhed/swap.c
libhed/swap.h