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
|