Skip to contentSkip to conversation

Support for installing on XFS partition?

RFD Andrei Borzenkov 2 participants 4 messages Nov 13, 2016 – Nov 16, 2016

lore
Share & tools
lore
#1 lore raw
Quoted 7 lines · Andrei Borzenkov

Syslinux MBR supports booting off XFS partition by adjusting PBR offset (see
http://repo.or.cz/syslinux.git/commit/4298786ca19e9121568ecd4cc8b79d276ccfd24a).
Is it worth to support? This can only work if Syslinux MBR is actually installed, so it would give false sense success in all other cases. OTOH this could enable chainloading off XFS by explicitly loading PBR from this offset using - probably, any - bootloader.

Make sense for me. However, I was not able to find anything/doc/spec which says that 4th sector is used for PBR in XFS. Could you point such thing? I would like to have some more details about that.

Daniel

#2 lore raw

15.11.2016 23:30, Daniel Kiper пишет:

Quoted 9 lines · Andrei Borzenkov
Quoted 7 lines

Syslinux MBR supports booting off XFS partition by adjusting PBR offset (see
http://repo.or.cz/syslinux.git/commit/4298786ca19e9121568ecd4cc8b79d276ccfd24a).
Is it worth to support? This can only work if Syslinux MBR is actually installed, so it would give false sense success in all other cases. OTOH this could enable chainloading off XFS by explicitly loading PBR from this offset using - probably, any - bootloader.

Quoted 4 lines

Make sense for me. However, I was not able to find anything/doc/spec which says that 4th sector is used for PBR in XFS. Could you point such thing? I would like to have some more details about that.

commit a126f17f663c438ef264a459fa130951dbac780d

Author: Paulo Alcantara <[email protected]>
Date:   Fri Jun 8 16:20:15 2012 -0300

EXTLINUX: Initial XFS filesystem support

XFS filesystems are divided into a number of equally sized chunks called Allocation Groups (AGs). Each AG can almost be thought of as an individual filesystem that maintains its own's space usage.

Each AG has the following structure:
- A super block describing the overall filesystem info
- Free space management
- Inode allocation and tracking

So, due to historical reasons (SGI IRIX's design of disk layouts), the first sector in the primary AG on XFS filesystems contains the superblock, which is a problem with bootloaders that rely on BIOSes
(that
load VBRs which are located in the first sector of the partition).

This patch adds support to the EXTLINUX installer to be able to install Syslinux in an XFS partition, but with a limitation (temporarily) of relying on the filesystem block size being 4+ KiB, otherwise there won't be enough space to store the Syslinux boot sector in the blank area
around
the 2048 to 4096 bytes of the primary AG/superblock.

#3 lore raw
Quoted 29 lines · Andrei Borzenkov

15.11.2016 23:30, Daniel Kiper ??????????:

Quoted 9 lines · Andrei Borzenkov
Quoted 7 lines

Syslinux MBR supports booting off XFS partition by adjusting PBR offset (see
http://repo.or.cz/syslinux.git/commit/4298786ca19e9121568ecd4cc8b79d276ccfd24a).
Is it worth to support? This can only work if Syslinux MBR is actually installed, so it would give false sense success in all other cases. OTOH this could enable chainloading off XFS by explicitly loading PBR from this offset using - probably, any - bootloader.

Quoted 3 lines

Make sense for me. However, I was not able to find anything/doc/spec which says that 4th sector is used for PBR in XFS. Could you point such thing? I would like to have some more details about that.

commit a126f17f663c438ef264a459fa130951dbac780d

Author: Paulo Alcantara <[email protected]>
Date:   Fri Jun 8 16:20:15 2012 -0300

EXTLINUX: Initial XFS filesystem support

XFS filesystems are divided into a number of equally sized chunks called Allocation Groups (AGs). Each AG can almost be thought of as an individual filesystem that maintains its own's space usage.

Each AG has the following structure:
- A super block describing the overall filesystem info
- Free space management
- Inode allocation and tracking

Quoted 8 lines

So, due to historical reasons (SGI IRIX's design of disk layouts), the first sector in the primary AG on XFS filesystems contains the superblock, which is a problem with bootloaders that rely on BIOSes
(that
load VBRs which are located in the first sector of the partition).

This patch adds support to the EXTLINUX installer to be able to install Syslinux in an XFS partition, but with a limitation (temporarily) of

Hmmm... Do you have an idea why temporarily? Did they fix this issue in the mean time?

Quoted 4 lines

relying on the filesystem block size being 4+ KiB, otherwise there won't be enough space to store the Syslinux boot sector in the blank area
around
the 2048 to 4096 bytes of the primary AG/superblock.

So, as I expected, it is not official/(properly documented?) XFS super block usage. Does anybody discussed this with XFS maintainers? If yes then we can go SYSLINUX way. If no then we should agree this thing with them. And at least check XFS block size before installation.

Daniel