xfs
[Top] [All Lists]

Re: Bug or feature?

To: Michel Machado <michel@xxxxxxxxxxxxxxx>
Subject: Re: Bug or feature?
From: Eric Sandeen <sandeen@xxxxxxx>
Date: 12 Nov 2002 10:27:35 -0600
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <00e701c28a66$72bf6b80$1601070a@mz.digirati.com.br>
References: <00e701c28a66$72bf6b80$1601070a@mz.digirati.com.br>
Sender: linux-xfs-bounce@xxxxxxxxxxx
Well, it's some of both.  XFS does not guarantee data integrity on a
crash, it only guarantees filesystem consistency.  If you flip the
switch before a write hits the disk, that data is gone.  I think vi does
some other tricks with creating swap files & truncating the original,
(or something like that) so that could affect the situation.  I don't
know what XFS looks like in Mandrake 9.0... changes were made quite some
time ago to help avoid this, but in the end, flipping the power switch
== data loss!

-Eric

On Tue, 2002-11-12 at 10:13, Michel Machado wrote:
> Hi,
> 
>     I have a Mandrake 9.0 box using XFS.
> 
>     When I edit a file (e.g. /etc/crontab) with vi and have a crash (e.g.
> hard reset button) the file is lose, output by hexdump:
> 
> hexdump crontab
> 0000000 0000 0000 0000 0000 0000 0000 0000 0000
> *
> 0000120 0000 0000 0000 0000 0000 0000
> 000012b
> 
>     Is it a feature or a bug? Is there some parameter via sysctl to help?
> 
> [ ]'s
> Michel Machado
> 
-- 
Eric Sandeen      XFS for Linux     http://oss.sgi.com/projects/xfs
sandeen@xxxxxxx   SGI, Inc.         651-683-3102


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