[Top] [All Lists]

Re: how to flush an XFS filesystem

To: linux xfs mailing list <linux-xfs@xxxxxxxxxxx>
Subject: Re: how to flush an XFS filesystem
From: Nathan Scott <nathans@xxxxxxx>
Date: Mon, 11 Jul 2005 11:48:27 +1000
In-reply-to: <20050710224635.GA12333@xxxxxxxxxxxxxxxxxxxxx>
References: <20050709091145.GA13108@xxxxxxxxxxxxxxxxxx> <20050710141254.A2904172@xxxxxxxxxxxxxxxxxxxxxxxx> <20050710084345.GA11413@xxxxxxxxxxxxxxxxxxxxx> <20050711081613.A2828633@xxxxxxxxxxxxxxxxxxxxxxxx> <20050710224635.GA12333@xxxxxxxxxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.3i
On Mon, Jul 11, 2005 at 01:46:35AM +0300, martin f krafft wrote:
> also sprach Nathan Scott <nathans@xxxxxxx> [2005.07.11.0116 +0300]:
> > >   Grub menu file is changed
> > >   kernel freezer is activated
> > >   filesystems are left untouched
> > >   system is shut down
> > 
> > There's no xfs_freeze(8) in that test case...?  I'm confused.
> > 
> > >   grub starts and /boot has not been flushed.
> > 
> > Hmm, AFAICT you didn't really freeze the filesystem.  The software
> > suspend "freezer" is putting the system into a state such that it
> > stops writing, such that kernel daemons go to "sleep" (and don't
> > wakeup on their usual timer-driven way), etc.  The assumption
> > there is the system will be woken up from this state at some point
> > not switched off and cold booted.
> Sorry for leaving out this vital info, I freeze (and unfreeze) right
> after changing the grub menu file.

Ah, OK thats more interesting then - can you describe the way
in which the Grub menu file is changed?  e.g. ... is a new
inode created or is an existing one overwritten?  is it written
via write(2) or mmap?  Is it using buffered or direct IO?  etc.



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