xfs
[Top] [All Lists]

Re: Might have found a bug...

To: Tim Clymo <tim_clymo@xxxxxxxxxxx>
Subject: Re: Might have found a bug...
From: Andi Kleen <ak@xxxxxxx>
Date: Tue, 15 May 2001 22:23:41 +0200
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <F197fyQgeDKvPEkGhAj00008076@xxxxxxxxxxx>; from tim_clymo@xxxxxxxxxxx on Tue, May 15, 2001 at 08:15:14PM -0000
References: <F197fyQgeDKvPEkGhAj00008076@xxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
On Tue, May 15, 2001 at 08:15:14PM -0000, Tim Clymo wrote:
> Editing a plain text file for example with vi, saving the file and
> doing an immediate reset - I could understand if the file was back to
> its original state before the edit was "written", but my experience is
> that instead it is useless junk.

As I understand it the problem is that XFS/Linux doesn't support 
unwritten extents yet (unlike Irix XFS). An unwritten extent would tell
XFS to zero the data on crash recovery, if it wasn't turned into an 
written extent by a finished flush. Without them recovery has no way to know 
if there is old data or new data in the extent and has to leave it alone, so 
you likely see old data if you hit reset fast. See the old XFS design 
documentation somewhere on their website for more details.

-Andi

<Prev in Thread] Current Thread [Next in Thread>