public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RE: [PATCH] [swsusp] print error message when swapping is disabled
@ 2004-10-29  9:54 Li, Shaohua
  2004-10-29  9:59 ` Pavel Machek
  2004-10-29 19:30 ` Nigel Cunningham
  0 siblings, 2 replies; 8+ messages in thread
From: Li, Shaohua @ 2004-10-29  9:54 UTC (permalink / raw)
  To: Pavel Machek, Zhu, Yi; +Cc: Andrew Morton, Linux Kernel Mailing List

>
>> > Another case is PSE disabled. Should notify this to user also.
>>
>> Here is a patch to address it.
>
>Patch is okay (but I rararely see this kind of failure in
>wild). Please submit via akpm.
>
Enable DEBUG_PAGEALLOC will disable PSE. 
Possibly a stupid question, why swsusp need PSE? I didn't see any
relationship between the two.

Thanks,
Shaohua

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: [PATCH] [swsusp] print error message when swapping is disabled
@ 2004-10-26 10:16 Li, Shaohua
  2004-10-29  7:07 ` Zhu, Yi
  0 siblings, 1 reply; 8+ messages in thread
From: Li, Shaohua @ 2004-10-26 10:16 UTC (permalink / raw)
  To: Pavel Machek, Zhu, Yi; +Cc: linux-kernel

>
>Hi!
>
>> swsusp exits silently when swapping is disabled. This patch gives
some
>> clues to
>> the user in this case. Please apply.
>
>Did you mean "swapon -a"? Otherwise approved, please send it to akpm
>directly.
Another case is PSE disabled. Should notify this to user also. 

Thanks,
Shaohua

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH] [swsusp] print error message when swapping is disabled
@ 2004-10-25  2:56 Zhu, Yi
  2004-10-25 10:27 ` Pavel Machek
  0 siblings, 1 reply; 8+ messages in thread
From: Zhu, Yi @ 2004-10-25  2:56 UTC (permalink / raw)
  To: Pavel Machek; +Cc: linux-kernel


Hi,

swsusp exits silently when swapping is disabled. This patch gives some
clues to
the user in this case. Please apply.

Thanks,
-yi

Signed-off-by: Zhu Yi <yi.zhu@intel.com>

--- linux-2.6.9-orig/kernel/power/swsusp.c	2004-10-24
16:16:41.000000000 +0800
+++ linux-2.6.9/kernel/power/swsusp.c	2004-10-24 16:15:06.000000000
+0800
@@ -843,8 +843,11 @@ asmlinkage int swsusp_save(void)
 {
 	int error = 0;
 
-	if ((error = swsusp_swap_check()))
+	if ((error = swsusp_swap_check())) {
+		printk(KERN_ERR "swsusp: FATAL: cannot find swap device,
try "
+				"swap -a!\n");
 		return error;
+	}
 	return suspend_prepare_image();
 }
 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-10-29 19:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-29  9:54 [PATCH] [swsusp] print error message when swapping is disabled Li, Shaohua
2004-10-29  9:59 ` Pavel Machek
2004-10-29 19:30 ` Nigel Cunningham
  -- strict thread matches above, loose matches on Subject: below --
2004-10-26 10:16 Li, Shaohua
2004-10-29  7:07 ` Zhu, Yi
2004-10-29  9:10   ` Pavel Machek
2004-10-25  2:56 Zhu, Yi
2004-10-25 10:27 ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox