http://oss.sgi.com/bugzilla/show_bug.cgi?id=310
Summary: Zeroed files on / partition after clean unmount
Product: Linux XFS
Version: Current
Platform: All
OS/Version: Linux
Status: NEW
Severity: critical
Priority: High
Component: XFS kernel code
AssignedTo: xfs-master@xxxxxxxxxxx
ReportedBy: ja@xxxxxxxxxxxx
Kernel versions are 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 tried to edit a file, reboot and boot from rescue CD. Then I mounted /dev/hda1
with '-o ro,norecovery' to be sure that there are no transactions replaying. The
file was filled with zeros so I think that the file is zeroed during umount or
flush.
I tested SUSE kernel 2.4.21-99-athlon too:
SGI XFS 1.3.0 with ACLs, no debug enabled
SGI XFS Quota Management subsystem
With this kernel is everything OK.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
|