xfs
[Top] [All Lists]

null character filesystem corruption with 2.4.6

To: linux-xfs@xxxxxxxxxxx
Subject: null character filesystem corruption with 2.4.6
From: Colin Walters <walters@xxxxxxxxxxxxxxxxxx>
Date: Sat, 14 Jul 2001 01:58:11 -0400
Organization: The Ohio State University Dept. of Computer and Info. Science
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.103 (powerpc-debian-linux-gnu)
When I tried to set up an 'at' command today, it told me I didn't have
permissions; this confused me until I looked at /etc/at.deny, which
was about 100 null characters.  Following this, I noticed that one of
my old emails had been destroyed too.

So I wrote the attached program to search for non-empty files
consisting entirely of null characters on XFS filesystems, which I'm
posting in the hope that it will be useful for someone else.

It revealed that my filesystem is pretty badly damaged (about 150
files were hit), so I'll probably have to restore from backups and
switch back to ext2 for now.

I'm running 2.4.6 from benh's tree on PowerPC.

I did try an xfs_check on the filesystem, which reported no errors.

Let me know if there's any more debugging information I can give; I
really wish I could use XFS!

Attachment: findnull.c
Description: program to find null files

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