EXTLINUX: Add sanity check for XFS filesystems
commit7997877811d9ce99efed65604bba2bae91332c79
authorPaulo Alcantara <pcacjr@zytor.com>
Sat, 28 Jul 2012 22:41:55 +0000 (28 19:41 -0300)
committerPaulo Alcantara <pcacjr@zytor.com>
Sun, 29 Jul 2012 05:15:40 +0000 (29 02:15 -0300)
treeae99e50bd7843047908dbb993fb13f3f164c8d57
parent65f99e18b36ce95bfa95a6c645a7c34e970050ab
EXTLINUX: Add sanity check for XFS filesystems

Syslinux won't work on >4 KiB filesystem block sizes since there is no
left space in MBR to determine where to install Syslinux bootsector.

If one is trying to install Syslinux in a XFS partition with a
filesystem block size different of 4 KiB, a proper error will be
returned to the user informing that the current filesystem block size
isn't supported by Syslinux.

Reported-by: Gene Cumm <gene.cumm@gmail.com>
Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
extlinux/main.c
extlinux/misc.h [new file with mode: 0644]