xfs
[Top] [All Lists]

Re: Null files reloaded :-)

To: Ricardo Correia <wizeman@xxxxxxxx>
Subject: Re: Null files reloaded :-)
From: Chris Wedgwood <cw@xxxxxxxx>
Date: Tue, 20 Jul 2004 11:31:24 -0700
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <200407201920.59109.wizeman@xxxxxxxx>
References: <200407200444.21761.wizeman@xxxxxxxx> <200407201440.03713.wizeman@xxxxxxxx> <20040720180625.GA31713@xxxxxxxxxxxxxxxxxxxxx> <200407201920.59109.wizeman@xxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
On Tue, Jul 20, 2004 at 07:20:59PM +0100, Ricardo Correia wrote:

> 1 - File A is safe on disk
> 2 - Process writes file B (metadata on disk, file data in RAM)
> 3 - Process renames B to A

A is gone, the metadata pointing to it is lost.

> 4 - Periodic disk sync (every 5 seconds or so?)

> Now if power failure occurs after 3, but before 4.. isn't the inode
> and content of A still on disk?

yes, but we don't know where

> And isn't the directory still pointing to the inode of A? I thought
> metadata at this point was only written to the journal.

it is, this means the rename and freeing of disk-blocks for A



  --cw


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