xfs
[Top] [All Lists]

Re: Null files reloaded :-)

To: David Sparks <daves@xxxxxxxxxxxxxxx>
Subject: Re: Null files reloaded :-)
From: Chris Wedgwood <cw@xxxxxxxx>
Date: Fri, 23 Jul 2004 12:14:44 -0700
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <410159BA.6060006@activestate.com>
References: <200407200444.21761.wizeman@wizy.org> <410159BA.6060006@activestate.com>
Sender: linux-xfs-bounce@xxxxxxxxxxx
On Fri, Jul 23, 2004 at 11:32:26AM -0700, David Sparks wrote:

> What happens when an existing file is changed and only the metadata
> is sync'd?

you can see old data

> open existing file
> seek xxx
> write data
> [filesystem brought uncleanly offline]

you see some/none/all of the new data depending on timing

> The real world example is database files.

for a sane database this shouldn't matter as they have code to work
with this

> What happens if a busy mysql database making a lot of inserts has
> the fs brought down uncleanly?

not sure, my guess is 'bad things' unless mysql has a log

> Are sections of the file nulled or is the entire file nulled?

neither


  --cw


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