1.3.71: swapper problem

Ulrich Windl (Ulrich.Windl@rz.uni-regensburg.de)
Mon, 11 Mar 1996 08:01:35 +0100


I'm currently debugging version 2.0 of fdisk. Therefore I deleted my
swap partition and converted it into an extended partition. Obviously
the swap signature remained still there.

Thus when trying the swapon system call, the kernel compained about
an attempt to access behind the end of the device (swap partition).
Then nothing worked. Pressing some magic keys showed that the process
running is the swapper.

I think the swapon algoritm should not only check the magic
signature, but also the size of the partition. If the partition is
smaller than the signature suggests, the system call should fail
(much more gracefully).

Ulrich Windl