To prevent problems with SCSI, maybe something like that ?
Index: suspend.c
===================================================================
RCS file: /home/cvs/linux-src/kernel/Attic/suspend.c,v
retrieving revision 1.3
diff -u -r1.3 suspend.c
--- suspend.c 2002/05/26 11:49:24 1.3
+++ suspend.c 2002/05/26 11:56:25
@@ -745,6 +745,9 @@
#ifdef CONFIG_BLK_DEV_IDE
ide_disk_unsuspend();
#endif
+#ifdef CONFIG_BLK_DEV_SD
+# error Do not use SCSI swap partition while using software suspend
+#endif
}
/* Called from process context */
@@ -753,7 +756,7 @@
#ifdef CONFIG_BLK_DEV_IDE
ide_disk_suspend();
#else
-#error Are you sure your disk driver supports suspend?
+# error Are you sure your disk driver supports suspend?
#endif
if(!pm_suspend_state) {
if(pm_send_all(PM_SUSPEND,(void *)3)) {
-- Florent Chabaud ___________________________________ SGDN/DCSSI/SDS/LTI | florent.chabaud@polytechnique.org http://www.ssi.gouv.fr | http://fchabaud.free.fr- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/