From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: Re: standby to disk transition Date: Tue, 14 Mar 2006 21:33:50 +0100 Message-ID: <20060314203350.GG1782@elf.ucw.cz> References: <200603132342.37691.rjw@sisk.pl> <200603140912.01502.nigel@suspend2.net> <200603140036.17051.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============93955208678021229==" Return-path: In-Reply-To: <200603140036.17051.rjw@sisk.pl> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.osdl.org Errors-To: linux-pm-bounces@lists.osdl.org To: "Rafael J. Wysocki" Cc: Nigel Cunningham , linux-pm@osdl.org, linux-pm@lists.osdl.org, "Victor Porton, , , " List-Id: linux-pm@vger.kernel.org --===============93955208678021229== Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi! > > We need to be able to rollback the state of the filesystem in memory and on > > disk to the point where the last checkpoint was made. Memory would be > > straight forward if we want to do it dumbly and slowly - just reload the > > whole check pointed image. If we want to be more efficient, we'd want to just > > load the pages that had changed (Mark on (first) write?). But filesystems > > seem to be a whole different story. Do any of the commonly used fses have > > support for checkpointing and rollback back at the moment? > > I'm not sure if we need a rollback as such. What we need is to make sure > the filesystems state will be consistent before as well as after we have > "reloaded" the snapshot. Even if you make sure *kernel* is consistent with changed filesystem, userland is going to be badly confused. Imagine what will happen with memory mapped files, for example. I'm not sure how it could work... Pavel -- 130: Buffer.BlockCopy( sbuffer, Pos + 4, Bytes, 0, Bytes.Length ); --===============93955208678021229== Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline --===============93955208678021229==--