Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268848AbTGTWpv (ORCPT ); Sun, 20 Jul 2003 18:45:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268836AbTGTWpl (ORCPT ); Sun, 20 Jul 2003 18:45:41 -0400 Received: from smtp-out1.iol.cz ([194.228.2.86]:26502 "EHLO smtp-out1.iol.cz") by vger.kernel.org with ESMTP id S268827AbTGTWpa (ORCPT ); Sun, 20 Jul 2003 18:45:30 -0400 Date: Mon, 21 Jul 2003 01:00:13 +0200 From: Pavel Machek To: John Bradford Cc: linux-kernel@vger.kernel.org, torvalds@osdl.org Subject: Re: Separate ACPI_SLEEP and SOFTWARE_SUSPEND options Message-ID: <20030720230013.GA1728@elf.ucw.cz> References: <200307202020.h6KKKrxh003150@81-2-122-30.bradfords.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200307202020.h6KKKrxh003150@81-2-122-30.bradfords.org.uk> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.3i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1394 Lines: 32 Hi! > > > > Right now you may boot without resuming and then later resume but > > > > in meantime you cannot use those swap partitions/files which were > > > > involved in suspending. Also in this case there is a risk that buffers > > > > on disk won't match with saved ones. > > > > > > What happens on a machine which is sharing swap space between two > > > operating systems? Do we have a way to mark a swap partition which is > > > used for suspend data as unusable? Maybe we could change the > > > partition type from 82 to something else. > > > > swsusp changes swap's signature, so swapon will fail. > > Aren't there some OSes that just blindly use the whole partition, > without looking for a swap signature? I suppose that's really a > problem that needs to be fixed with the other OS, though, to recognise > the swsusp signature and disable swapping during that boot. Exactly. If the other OS does not honour swap signature, it might as well ignore partition type too. You need to fix that hypothetical other OS. Pavel -- When do you have a heart between your knees? [Johanka's followup: and *two* hearts?] - 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/