From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261962AbTDXJMH (ORCPT ); Thu, 24 Apr 2003 05:12:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262047AbTDXJMH (ORCPT ); Thu, 24 Apr 2003 05:12:07 -0400 Received: from [12.47.58.68] ([12.47.58.68]:39955 "EHLO pao-ex01.pao.digeo.com") by vger.kernel.org with ESMTP id S261962AbTDXJMF (ORCPT ); Thu, 24 Apr 2003 05:12:05 -0400 Date: Thu, 24 Apr 2003 02:25:05 -0700 From: Andrew Morton To: Pavel Machek Cc: ncunningham@clear.net.nz, cat@zip.com.au, mbligh@aracnet.com, gigerstyle@gmx.ch, geert@linux-m68k.org, linux-kernel@vger.kernel.org Subject: Re: Fix SWSUSP & !SWAP Message-Id: <20030424022505.5b22eeed.akpm@digeo.com> In-Reply-To: <20030424091236.GA3039@elf.ucw.cz> References: <1051136725.4439.5.camel@laptop-linux> <1584040000.1051140524@flay> <20030423235820.GB32577@atrey.karlin.mff.cuni.cz> <20030423170759.2b4e6294.akpm@digeo.com> <20030424001733.GB678@zip.com.au> <1051143408.4305.15.camel@laptop-linux> <20030423173720.6cc5ee50.akpm@digeo.com> <20030424091236.GA3039@elf.ucw.cz> X-Mailer: Sylpheed version 0.8.11 (GTK+ 1.2.10; i586-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 24 Apr 2003 09:24:07.0382 (UTC) FILETIME=[41759F60:01C30A43] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Pavel Machek wrote: > > No, ext3 will be "unclean" during resume (you can't really unmount it > during suspend!) and r-o mounting of ext3 will replay journal and > cause data corruption. Sorry, I still don't get it. Go through the steps for me: 1) suspend writes pages to disk 2) machine is shutdown 3) restart, journal replay 4) resume reads pages from disk. Where did the corruption happen? Please bear in mind that I don't really know how swsusp works, so tell it to me in nice simple steps.