Comment 5 for bug 683605

Revision history for this message
James Hunt (jamesodhunt) wrote :

For info, an "unused" (mkswap'ed only) swap image looks like this:

0000fc0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000fd0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000fe0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000ff0: 0000 0000 0000 5357 4150 5350 4143 4532 ......SWAPSPACE2
0001000: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0001010: 0000 0000 0000 0000 0000 0000 0000 0000 ................

A used swap image (where the kernel has written to it) looks like this:

0000fc0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000fd0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000fe0: 0100 0000 0000 0000 0100 0000 5357 4150 ............SWAP
0000ff0: 5350 4143 4532 5357 4150 5350 4143 4532 SPACE2SWAPSPACE2
0001000: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0001010: 0000 0000 0000 0000 0000 0000 0000 0000 ................