From: Dave Chinner <david@fromorbit.com>
To: "Arkadiusz Miśkiewicz" <arekm@maven.pl>
Cc: Alex Elder <elder@kernel.org>, xfs@oss.sgi.com
Subject: Re: xfs_repair 3.2.0 cannot (?) fix fs
Date: Mon, 30 Jun 2014 13:44:15 +1000 [thread overview]
Message-ID: <20140630034415.GD4453@dastard> (raw)
In-Reply-To: <20140630031810.GC4453@dastard>
On Mon, Jun 30, 2014 at 01:18:10PM +1000, Dave Chinner wrote:
> On Sat, Jun 28, 2014 at 01:41:54AM +0200, Arkadiusz Miśkiewicz wrote:
> > 4)
> > Phase 7 - verify and correct link counts...
> > Invalid inode number 0xfeffffffffffffff
> > xfs_dir_ino_validate: XFS_ERROR_REPORT
> > Metadata corruption detected at block 0x11fbb698/0x1000
> > libxfs_writebufr: write verifer failed on bno 0x11fbb698/0x1000
> > Invalid inode number 0xfeffffffffffffff
> > xfs_dir_ino_validate: XFS_ERROR_REPORT
> > Metadata corruption detected at block 0x11fbb698/0x1000
> > libxfs_writebufr: write verifer failed on bno 0x11fbb698/0x1000
> > done
>
> Not sure what that is yet, but it looks like writing a directory
> block found entries with invalid inode numbers in it. i.e. it's
> telling me that there's something not been fixed up.
>
> I'm actually seeing this in phase4:
>
> - agno = 148
> Invalid inode number 0xfeffffffffffffff
> xfs_dir_ino_validate: XFS_ERROR_REPORT
> Metadata corruption detected at block 0x11fbb698/0x1000
> libxfs_writebufr: write verifer failed on bno 0x11fbb698/0x1000
OK:
repair/dir2.c:#define BADFSINO ((xfs_ino_t)0xfeffffffffffffffULL)
And:
/*
* Now we can mark entries with BADFSINO's bad.
*/
if (!no_modify && ent_ino == BADFSINO) {
dep->name[0] = '/';
*dirty = 1;
junkit = 0;
}
So these errors:
> entry at block 22 offset 560 in directory inode 419558142 has illegal name "/_198.jpg": clearing entry
Appear to be a result of repair failing at some point before phase
6 which cleans up bad inodes and entries in the directory structure.
> So regardless of whether metadump handles them or is not going to
> change the fact that filenames with "/" them are broken....
>
> But the real question here is how did you get "/" characters in
> filenames?
Yup, there are several places where repair overwrites the dirent name
with a leading "/" to indicate a junked entry, and this is supposed
to be detected and handled in phase 6. Seems like the directory is
not being rebuilt in phase 6?
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2014-06-30 3:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-27 23:41 xfs_repair 3.2.0 cannot (?) fix fs Arkadiusz Miśkiewicz
2014-06-28 21:52 ` Arkadiusz Miśkiewicz
2014-06-28 22:01 ` Arkadiusz Miśkiewicz
2014-06-30 3:18 ` Dave Chinner
2014-06-30 3:44 ` Dave Chinner [this message]
2014-06-30 5:36 ` Arkadiusz Miśkiewicz
2014-06-30 11:12 ` Dave Chinner
2014-06-30 11:53 ` Arkadiusz Miśkiewicz
2014-06-30 12:06 ` Dave Chinner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140630034415.GD4453@dastard \
--to=david@fromorbit.com \
--cc=arekm@maven.pl \
--cc=elder@kernel.org \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.