All of lore.kernel.org
 help / color / mirror / Atom feed
* GRUB doesn't work on CRC enabled fs
@ 2013-08-12 20:29 Markus Trippelsdorf
  2013-08-13  1:13 ` Dave Chinner
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Trippelsdorf @ 2013-08-12 20:29 UTC (permalink / raw)
  To: xfs

Just a heads-up: GRUB currently doesn't work on a CRC enabled
file-system. It will print the following error message:
 "not a correct XFS inode"

GRUB's xfs implementation can be found here:
http://bzr.savannah.gnu.org/lh/grub/trunk/grub/annotate/head:/grub-core/fs/xfs.c

-- 
Markus

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: GRUB doesn't work on CRC enabled fs
  2013-08-12 20:29 GRUB doesn't work on CRC enabled fs Markus Trippelsdorf
@ 2013-08-13  1:13 ` Dave Chinner
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Chinner @ 2013-08-13  1:13 UTC (permalink / raw)
  To: Markus Trippelsdorf; +Cc: xfs

On Mon, Aug 12, 2013 at 10:29:24PM +0200, Markus Trippelsdorf wrote:
> Just a heads-up: GRUB currently doesn't work on a CRC enabled
> file-system. It will print the following error message:
>  "not a correct XFS inode"

Yup, that is expected. grub digs around in the on disk format, and
we changed it. So, grub won't work with v5 superblocks.

> GRUB's xfs implementation can be found here:
> http://bzr.savannah.gnu.org/lh/grub/trunk/grub/annotate/head:/grub-core/fs/xfs.c

    if (grub_strncmp ((char *) inode->magic, "IN", 2))
	  return grub_error (GRUB_ERR_BAD_FS, "not a correct XFS inode");

So it's failing a magic number test. That means it's read the wrong
location for an inode, so it's getting something badly wrong. Almost
certainly it doesn't grok the new inode format and so isn't finding
the data fork of the inode correctly.

No surprise, really, it hard codes the location and size of the
inode literal area (to 156 bytes or 9 extents) and so will not parse
anything other than a 256 byte version 2 inode correctly. It doesn't
even realise that the literal area might contain an attribute
fork, or that inodes might be larger than 256 bytes.

This pretty much sums up why grub is fundamentally broken...

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-13  1:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-12 20:29 GRUB doesn't work on CRC enabled fs Markus Trippelsdorf
2013-08-13  1:13 ` Dave Chinner

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.