xfs
[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: Wed, 13 Jul 2005 11:40:28 +1000
In-reply-to: <20050711072807.GA16354@xxxxxxxxxxxxxxxxxxxxx>
References: <20050709091145.GA13108@xxxxxxxxxxxxxxxxxx> <20050710141254.A2904172@xxxxxxxxxxxxxxxxxxxxxxxx> <20050710084345.GA11413@xxxxxxxxxxxxxxxxxxxxx> <20050711081613.A2828633@xxxxxxxxxxxxxxxxxxxxxxxx> <20050710224635.GA12333@xxxxxxxxxxxxxxxxxxxxx> <20050711014827.GB829@frodo> <20050711072807.GA16354@xxxxxxxxxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.3i
Hi Martin,

On Mon, Jul 11, 2005 at 10:28:07AM +0300, martin f krafft wrote:
> also sprach Nathan Scott <nathans@xxxxxxx> [2005.07.11.0448 +0300]:
> > 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.
> 
> I am using sed to edit inplace and from what I know about sed, it
> actually creates a new inode.

I don't seem to be able to reproduce this - does the following
recipe fail for you on your machine?  Maybe your kernels a bit
out of date?  (what version was that again?)

> mount | tail -1
/dev/sdb5 on /mnt/xfs0 type xfs (rw,rtdev=/dev/sdc1,logdev=/dev/sda11,uquota)
> su
[root@bruce xfstests]# 
[root@bruce xfstests]# xfs_freeze
Usage: xfs_freeze -f | -u <mountpoint>
[root@bruce xfstests]# echo writeme > /mnt/xfs0/foo
[root@bruce xfstests]# xfs_freeze -f /mnt/xfs0
[root@bruce xfstests]# xfs_freeze -u /mnt/xfs0
[root@bruce xfstests]# reboot -f
Read from remote host bruce: Connection reset by peer
Connection to bruce closed.
$ ssh bruce -l fsgqa
fsgqa has logged on pts/0 from sheila.
> su
[root@bruce fsgqa]# mount -o rw,rtdev=/dev/sdc1,logdev=/dev/sda11,uquota 
/dev/sdb5 /mnt/xfs0
[root@bruce fsgqa]# cat /mnt/xfs0/foo
writeme
[root@bruce fsgqa]# 


cheers.

-- 
Nathan


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