On Saturday, 21 April 2007 00:59, Tim Dijkstra wrote:
> Hi,
> 
> I'm trying out sdisk with a swap file. 
> 
> $ cat /proc/swaps
> Filename                                Type            Size    Used    
> Priority
> /dev/hda2                               partition       979956  189972  -1
> /local/tmp/swapfile                     file            1048568 0       -2
> 
> Now what maybe complicates things is that mounted on /local is an lvm
> logical volume, /dev/dm-5
> 
> I configured /etc/suspend.conf with the help of swap-offset
> 
> $ sudo swap-offset /local/tmp/swapfile
> resume offset = 12979490
> 
> This is with a vanilla kernel
> $ uname -r
> 2.6.20
> 
> Now if I start s2disk I get all the way too the "S", but then I get
> thrown back in my session. A printf tells me that in the function
> mark_swap() the condition:
> 
>         if (!memcmp("SWAP-SPACE", swsusp_header.sig, 10) ||
>             !memcmp("SWAPSPACE2", swsusp_header.sig, 10)) {
> 
> is false.
> 
> Somehow the header is not what s2disk thinks it is...
> 
> Any ideas?

First, try the built-in swsusp.

If that works, I'd add some code reading whatever is at

/dev/your_swap_device + resume_offset

and dumping it to stdout in mark_swap().

Anyway, this is strange, because the kernel apparently thinks there is a swap
in there.

Greetings,
Rafael

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel

Reply via email to