grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* [RFD] Support for installing on XFS partition?
@ 2016-11-13  9:16 Andrei Borzenkov
  2016-11-15 20:30 ` Daniel Kiper
  0 siblings, 1 reply; 4+ messages in thread
From: Andrei Borzenkov @ 2016-11-13  9:16 UTC (permalink / raw)
  To: The development of GNU GRUB

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.


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

* Re: [RFD] Support for installing on XFS partition?
  2016-11-13  9:16 [RFD] Support for installing on XFS partition? Andrei Borzenkov
@ 2016-11-15 20:30 ` Daniel Kiper
  2016-11-16  3:51   ` Andrei Borzenkov
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Kiper @ 2016-11-15 20:30 UTC (permalink / raw)
  To: arvidjaar, grub-devel

On Sun, Nov 13, 2016 at 12:16:20PM +0300, Andrei Borzenkov wrote:
> 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


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

* Re: [RFD] Support for installing on XFS partition?
  2016-11-15 20:30 ` Daniel Kiper
@ 2016-11-16  3:51   ` Andrei Borzenkov
  2016-11-16 11:01     ` Daniel Kiper
  0 siblings, 1 reply; 4+ messages in thread
From: Andrei Borzenkov @ 2016-11-16  3:51 UTC (permalink / raw)
  To: Daniel Kiper, grub-devel

15.11.2016 23:30, Daniel Kiper пишет:
> On Sun, Nov 13, 2016 at 12:16:20PM +0300, Andrei Borzenkov wrote:
>> 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.
> 

commit a126f17f663c438ef264a459fa130951dbac780d
Author: Paulo Alcantara <pcacjr@zytor.com>
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.



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

* Re: [RFD] Support for installing on XFS partition?
  2016-11-16  3:51   ` Andrei Borzenkov
@ 2016-11-16 11:01     ` Daniel Kiper
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Kiper @ 2016-11-16 11:01 UTC (permalink / raw)
  To: arvidjaar, grub-devel; +Cc: dkiper

On Wed, Nov 16, 2016 at 06:51:10AM +0300, Andrei Borzenkov wrote:
> 15.11.2016 23:30, Daniel Kiper ??????????:
> > On Sun, Nov 13, 2016 at 12:16:20PM +0300, Andrei Borzenkov wrote:
> >> 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.
>
> commit a126f17f663c438ef264a459fa130951dbac780d
> Author: Paulo Alcantara <pcacjr@zytor.com>
> 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

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

>     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


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

end of thread, other threads:[~2016-11-16 11:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-13  9:16 [RFD] Support for installing on XFS partition? Andrei Borzenkov
2016-11-15 20:30 ` Daniel Kiper
2016-11-16  3:51   ` Andrei Borzenkov
2016-11-16 11:01     ` Daniel Kiper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).