Hi,
when image size is set to 0, suspending fails with
suspend: No swap space for suspend
This fixes it:
Index: suspend.c
===================================================================
RCS file: /cvsroot/suspend/suspend/suspend.c,v
retrieving revision 1.58
diff -u -p -r1.58 suspend.c
--- suspend.c 26 Sep 2006 12:30:33 -0000 1.58
+++ suspend.c 6 Oct 2006 12:44:53 -0000
@@ -688,7 +688,7 @@ int suspend_system(int snapshot_fd, int
image_size = pref_image_size;
else
image_size = avail_swap;
- if (!image_size) {
+ if (!avail_swap) {
fprintf(stderr, "suspend: No swap space for suspend\n");
return ENOSPC;
}
--
Stefan Seyfried
QA / R&D Team Mobile Devices | "Any ideas, John?"
SUSE LINUX Products GmbH, Nürnberg | "Well, surrounding them's out."
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Suspend-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/suspend-devel