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 12:05:25 +1000
In-reply-to: <20050713014028.GC980@frodo>
References: <20050709091145.GA13108@cirrus.madduck.net> <20050710141254.A2904172@wobbly.melbourne.sgi.com> <20050710084345.GA11413@localhost.localdomain> <20050711081613.A2828633@wobbly.melbourne.sgi.com> <20050710224635.GA12333@localhost.localdomain> <20050711014827.GB829@frodo> <20050711072807.GA16354@localhost.localdomain> <20050713014028.GC980@frodo>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.3i
On Wed, Jul 13, 2005 at 11:40:28AM +1000, Nathan Scott wrote:
> 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?)
> ..

Here's another recipe - this time without any possibility for
a log recovery happening before the read...

# echo writemetoo > /mnt/xfs0/foo2 && ls -li /mnt/xfs0/foo2 && xfs_freeze -f 
/mnt/xfs0 && xfs_freeze -u /mnt/xfs0 &&  reboot -f
    133 -rw-r--r--    1 root     root           11 Jul 13 11:40 /mnt/xfs0/foo2
ead from remote host bruce: Connection reset by peer
Connection to bruce closed.

[root@bruce fsgqa]# xfs_db -x /dev/sdb5
xfs_db> inode 133
xfs_db> p
core.magic = 0x494e
core.mode = 0100644
...
core.gen = 0
next_unlinked = null
u.bmx[0] = [startoff,startblock,blockcount,extentflag] 0:[0,16,1,0]
xfs_db> addr u.bmx[0].startblock
xfs_db> type text
xfs_db> p
000:  77 72 69 74 65 6d 65 74 6f 6f 0a 00 00 00 00 00  writemetoo......
010:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
020:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................


So, its definately all there on disk after a freeze...

cheers.

-- 
Nathan


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