Received: with ECARTIS (v1.0.0; list linux-xfs); Tue, 12 Jul 2005 18:49:11 -0700 (PDT) Received: from larry.melbourne.sgi.com (mverd138.asia.info.net [61.14.31.138]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with SMTP id j6D1n5H9023471 for ; Tue, 12 Jul 2005 18:49:05 -0700 Received: from wobbly.melbourne.sgi.com (wobbly.melbourne.sgi.com [134.14.55.135]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id LAA19233 for ; Wed, 13 Jul 2005 11:47:21 +1000 Received: from frodo.melbourne.sgi.com (root@frodo.melbourne.sgi.com [134.14.55.153]) by wobbly.melbourne.sgi.com (SGI-8.12.5/8.12.5) with ESMTP id j6D1lOkt2986237 for ; Wed, 13 Jul 2005 11:47:25 +1000 (EST) Received: from frodo.melbourne.sgi.com (nathans@localhost [127.0.0.1]) by frodo.melbourne.sgi.com (8.12.9/8.12.9/Debian-3) with ESMTP id j6D1eToe001275 for ; Wed, 13 Jul 2005 11:40:29 +1000 Received: (from nathans@localhost) by frodo.melbourne.sgi.com (8.12.9/8.12.9/Debian-3) id j6D1eTMR001273 for linux-xfs@oss.sgi.com; Wed, 13 Jul 2005 11:40:29 +1000 Date: Wed, 13 Jul 2005 11:40:28 +1000 From: Nathan Scott To: linux xfs mailing list Subject: Re: how to flush an XFS filesystem Message-ID: <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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050711072807.GA16354@localhost.localdomain> User-Agent: Mutt/1.5.3i X-archive-position: 5610 X-ecartis-version: Ecartis v1.0.0 Sender: linux-xfs-bounce@oss.sgi.com Errors-to: linux-xfs-bounce@oss.sgi.com X-original-sender: nathans@sgi.com Precedence: bulk X-list: linux-xfs Content-Length: 1395 Lines: 42 Hi Martin, On Mon, Jul 11, 2005 at 10:28:07AM +0300, martin f krafft wrote: > also sprach Nathan Scott [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 [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