Received: with ECARTIS (v1.0.0; list linux-xfs); Tue, 17 Feb 2004 07:11:36 -0800 (PST) Received: from alienAngel.upjs.sk (gprs185-222.eurotel.cz [160.218.185.222]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i1HFB5KO017191 for ; Tue, 17 Feb 2004 07:11:08 -0800 Received: by alienAngel.upjs.sk (Postfix, from userid 500) id 96F241C2; Tue, 17 Feb 2004 14:28:54 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by alienAngel.upjs.sk (Postfix) with ESMTP id 92DE01A6 for ; Tue, 17 Feb 2004 14:28:54 +0100 (CET) Date: Tue, 17 Feb 2004 14:28:54 +0100 (CET) From: Jan Derfinak X-X-Sender: ja@alienAngel.home.sk To: linux-xfs@oss.sgi.com Subject: Zeroed files on / partition after clean unmount Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-archive-position: 2124 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: ja@mail.upjs.sk Precedence: bulk X-list: linux-xfs Hi. Recently I found weird behaviour of xfs on my root filesystem. Kernel version is 2.6.0-test11-xfs, 2.6.2-rc3, 2.6.3-rc4. The last one wrote this message on boot: SGI-XFS CVS-2004-02-17_06:00_UTC with ACLs, realtime, no debug enabled SGI XFS Quota Management subsystem Steps to reproduce: 1. I booted the computer. 2. Immediately after boot I logged to text console. I used vi to edit /boot/grub/menu.lst. 3. I ended vi and reboot machine with 'reboot' command. During reboot process I saw "/dev/hda1 unmouted" (hda1 is my root partition). During next boot I saw: XFS mounting filesystem hda1 Ending clean XFS mount for filesystem: hda1 VFS: Mounted root (xfs filesystem) readonly. But file menu.lst is filled with zeros. After this I did next test. 1. I booted the computer. 2. I copied file /boot/grup/menu.lst~ to /boot/grup/menu.lst, /root/menu.lst, /home/menu.lst. 3. Rebooted with 'reboot' command. /boot/grup/menu.lst and /root/menu.lst were filled with zeros. /home/menu.lst was OK. /home is different partition. Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda1 2094240 1326768 767472 64% / /dev/mapper/system-test 519488 269464 250024 52% /home If the computer is running for longer time, I can edit menu.lst and reboot and everything is OK. But if I just boot, edit a file on root partition and reboot, the file is every time zeroed. I think this isn't expected behaviour. Should I do more testing? Which one? jan --