Received: from list by lists.gnu.org with archive (Exim 4.71) id 1c6rFm-0000og-Tn for mharc-grub-devel@gnu.org; Tue, 15 Nov 2016 22:51:18 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c6rFk-0000oX-Mq for grub-devel@gnu.org; Tue, 15 Nov 2016 22:51:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c6rFh-0002XW-Kd for grub-devel@gnu.org; Tue, 15 Nov 2016 22:51:16 -0500 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:34942) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c6rFh-0002XM-DA for grub-devel@gnu.org; Tue, 15 Nov 2016 22:51:13 -0500 Received: by mail-wm0-x244.google.com with SMTP id a20so6707082wme.2 for ; Tue, 15 Nov 2016 19:51:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=wKwPudTsIcXFSN9AFsuFu3A34rePiqOXCk8nA6FZuqI=; b=Xt2kQUd+N00cqmYGpWF6DuAlCM5xbV3ImDfuxXXZ+7HOM1mZ0Aqdrc6vYYB5Zhtir9 rNEGPeVreX5FiPEBZ+6nrIDvepndY9wnVcHVSldVwgjSuapBfN1A5kKlHPwBhAy/pg+A lbvEDfVb0ezq+Kk6C2sj/VO2aT/mj6NBNk+dFvGyXisPVomarCW+gdf8qDcIjEUvwfme khP+nOCmB0AdKyD19MneUMD723Hv1U8IWwfIELbniqz/CjTU90IIqlXhRd5QdMUbtniw Poz7iFW2Pny8DuA3fk7gRa0QIXufuuF9K+BRW21cYr8VqNf6TVKtElqTGS4cdz+JjwxH liGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=wKwPudTsIcXFSN9AFsuFu3A34rePiqOXCk8nA6FZuqI=; b=EnjnhQ21gsPgoz25v1ZYo9qfTlcceb/LnuY3VLoARVYweKjX2tYLVnfl6mymFvYFha 2FHVZ6lTNL5txz59OJpN7Bm8kbaGl+1khsoDuCyRtkWvvmYLwJ7I7kM7L2u2nMBZCQkZ +IJNHxlWkWA/Mi0uSXvYIjdL/sgFlS5ZlmBPfjZS0eNgE1qk9vOIegP9vrqILFbHrR6U w0w5+nsSoV47hlJe3kNk/gMboC1puC0cXXfleuCc7o/Wd4bAnv4qm2VsCHVC1ybe6tpq QRtoqK1IuNOmGgl9Yl5c+V5Y1B74GiXgd8QRDcLTNequURO79sCo8Mwd4DJwAzx1HTCo FRHA== X-Gm-Message-State: ABUngveJGbr3C8KzSTwVgUDxwYlQEG7dpmCxFNFj2O8xVhaLvT0FT1MYFkcTfnOaBlIPlQ== X-Received: by 10.25.134.139 with SMTP id i133mr277400lfd.79.1479268271898; Tue, 15 Nov 2016 19:51:11 -0800 (PST) Received: from [192.168.1.44] (ppp109-252-90-55.pppoe.spdop.ru. [109.252.90.55]) by smtp.gmail.com with ESMTPSA id t126sm2814268lff.26.2016.11.15.19.51.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Nov 2016 19:51:11 -0800 (PST) Subject: Re: [RFD] Support for installing on XFS partition? To: Daniel Kiper , grub-devel@gnu.org References: <20161115203005.GE16470@router-fw-old.local.net-space.pl> From: Andrei Borzenkov Message-ID: <2fcaaf35-93ce-ceb8-c714-46b52364e172@gmail.com> Date: Wed, 16 Nov 2016 06:51:10 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161115203005.GE16470@router-fw-old.local.net-space.pl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::244 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Nov 2016 03:51:18 -0000 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 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.