xfs
[Top] [All Lists]

data corruption after unclean shutdown, sync does not work.

To: linux-xfs@xxxxxxxxxxx
Subject: data corruption after unclean shutdown, sync does not work.
From: utz lehmann <xfs@xxxxxxxxxx>
Date: Sun, 11 Feb 2001 16:36:10 +0100
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
hi

i found a bug with the newer development kernels.

i have files with data corruption after hitting the reset button.
it seems that "sync" does not sync the data to disk.

i made following test:


cp -av /usr/src/linux/drivers/ drivers
diff -r -u /usr/src/linux/drivers/ drivers/  (no differs)
sync
sync
sync

hit the reset button.

after that, the diff reports about 190 (of 3134) files are different.

the files have the right size, but they are only filled with null chars.
xfs_bmap reports, that they have no extends.

i have made the test with some older kernels:

the last working kernel is from feb, 4th 14:00 CET.
the first buggy kernel is from feb, 6th 0:50 CET.

the tests were made on a xfs root partition (ide drive, no kio).

and i notice that on the buggy kernels, when the (root) fs is marked
readonly while shutdown, there were more diskactivity than on the good ones.
the data is only written to disk while marking readonly?


hope that helps.


utz


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