mbr: Add support for loading VBRs from XFS filesystems
commit4298786ca19e9121568ecd4cc8b79d276ccfd24a
authorPaulo Alcantara <pcacjr@zytor.com>
Fri, 8 Jun 2012 21:07:59 +0000 (8 18:07 -0300)
committerPaulo Alcantara <pcacjr@zytor.com>
Sat, 21 Jul 2012 04:21:45 +0000 (21 01:21 -0300)
treee1a3607530069734e06ca59fdc4e29e3402dd0b8
parenta126f17f663c438ef264a459fa130951dbac780d
mbr: Add support for loading VBRs from XFS filesystems

Before reading the VBR into 0x7C00, we need to check the first 4 bytes of
the read sector and check whether it is a XFS superblock or not. If it
is, then we need to read the right sector, which is the 4th sector of
the XFS partition where the Syslinux boot sector lives in.

This patch adds support for booting off XFS partitions properly on
MBR HDDs.

Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
mbr/mbr.S