David Chinner wrote:
> On Thu, Mar 27, 2008 at 11:25:49PM -0500, Eric Sandeen wrote:
>> Mark Goodwin wrote:
>>> Eric Sandeen wrote:
>>>> Bugzilla Bug 437968: Corrupt xfs root filesystem with kernel
>>>> Just to give the sgi guys a heads up, 2 people have seen this now.
>>>> I know it's a distro kernel but fedora is generally reasonably close to
>>>> I'm looking into it but just wanted to put this on the list, too.
>>> Hi Eric, have you identified this as any particular known problem?
>> >From a testcase and some git bisection, looks like this mod broke it
>> somehow, but not sure how yet:
>> [XFS] superblock endianess annotations
> Uh, what? Functionally that's a no-op....
well, it's supposed to be... but I guess that's why they call it a bug?
:) really and truly, that's where bisect landed, and I tested a few
times with and without the patch and it seems to confirm.
> Is this only showing up on attr=2 filesystems?
a little hard to say since it has the 64-bit features2 padding problem...
[root@bear-05 test]# xfs_db -c version testfs
versionnum [0xb094+0x8] = V4,ATTR,ALIGN,DIRV2,EXTFLG,MOREBITS,ATTR2
I can try later on non-attr2... this fs was originally created by the
> And it looks like it was a directory inode judging by all the
> disconnected inodes. Looks like a corrupted directory extent btree
> from this. Can you run `xfs_db -r -c "inode 17627699" -c p <dev>`
> so we can confirm this?
sorry, meant to do that:
# xfs_db -r -c "inode 17627699" -c p testfs
core.magic = 0x494e
core.mode = 040755
core.version = 1
core.format = 3 (btree)
core.nlinkv1 = 2
core.uid = 0
core.gid = 0
core.flushiter = 2
core.atime.sec = Wed Jan 9 12:14:05 2008
core.atime.nsec = 000000000
core.mtime.sec = Fri Mar 28 07:16:54 2008
core.mtime.nsec = 590127668
core.ctime.sec = Fri Mar 28 07:16:54 2008
core.ctime.nsec = 590127668
core.size = 81920
core.nblocks = 30
core.extsize = 0
core.nextents = 23
core.naextents = 1
core.forkoff = 15
core.aformat = 2 (extents)
core.dmevmask = 0
core.dmstate = 0
core.newrtbm = 0
core.prealloc = 0
core.realtime = 0
core.immutable = 0
core.append = 0
core.sync = 0
core.noatime = 0
core.nodump = 0
core.rtinherit = 0
core.projinherit = 0
core.nosymlinks = 0
core.extsz = 0
core.extszinherit = 0
core.nodefrag = 0
core.filestream = 0
core.gen = 0
next_unlinked = null
u.bmbt.level = 1
u.bmbt.numrecs = 1
u.bmbt.keys = [startoff] 1:
u.bmbt.ptrs = 1:0
a.bmx = [startoff,startblock,blockcount,extentflag] 0:[0,1103697,1,0]