I am looking at mkswap and trying to understand how exactly it works. From what I understand, it sets up Swap space on a partition by creating a swap header. How large is this swap header? Is it one block? Or is it always a consistent size?I did try looking through the mkswap.c source code, but my C-knowledge is not enough to understand it. Specifically, I think the following line writes out the swap header:strncpy((char*)signature_page+PAGE_SIZE-10,SWAP-SPACE,10);
How does mkswap work? What is in the swap header it creates?
linux;swap