Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YzOhx-0003r9-83 for mharc-grub-devel@gnu.org; Mon, 01 Jun 2015 08:20:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzOht-0003mq-Hn for grub-devel@gnu.org; Mon, 01 Jun 2015 08:20:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YzOho-0006Sv-4p for grub-devel@gnu.org; Mon, 01 Jun 2015 08:20:41 -0400 Received: from cantor2.suse.de ([195.135.220.15]:48745 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzOhn-0006Si-Vp for grub-devel@gnu.org; Mon, 01 Jun 2015 08:20:36 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 5030CAC8D; Mon, 1 Jun 2015 12:20:34 +0000 (UTC) Received: by quack.suse.cz (Postfix, from userid 1000) id 95E5D8281E; Mon, 1 Jun 2015 14:20:33 +0200 (CEST) Date: Mon, 1 Jun 2015 14:20:33 +0200 From: Jan Kara To: Andrei Borzenkov Subject: Re: [PATCH 2/2] xfs: V5 filesystem format support Message-ID: <20150601122033.GA20288@quack.suse.cz> References: <1431502368-29422-1-git-send-email-jack@suse.cz> <1431502368-29422-3-git-send-email-jack@suse.cz> <20150530095909.62c7b302@opensuse.site> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20150530095909.62c7b302@opensuse.site> User-Agent: Mutt/1.5.21 (2010-09-15) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 195.135.220.15 Cc: grub-devel@gnu.org, Jan Kara X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2015 12:20:42 -0000 On Sat 30-05-15 09:59:09, Andrei Borzenkov wrote: > =D0=92 Wed, 13 May 2015 09:32:48 +0200 > Jan Kara =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >=20 > > =20 > > struct grub_xfs_sblock > > { > > @@ -54,12 +68,19 @@ struct grub_xfs_sblock > > grub_uint8_t log2_agblk; > > grub_uint8_t unused6[67]; > > grub_uint8_t log2_dirblk; > > + grub_uint8_t unused7[7]; > > + grub_uint32_t features2; > > + grub_uint8_t unused8[4]; > > + grub_uint32_t sb_features_compat; > > + grub_uint32_t sb_features_ro_compat; > > + grub_uint32_t sb_features_incompat; > > + grub_uint32_t sb_features_log_incompat; >=20 > They do not seem to be really used. Normally the very first thing other > filesystems do is to check for incompatible features we do not support. > Even if there are no such such features right now you should add checks > to avoid attempt to access unsupported future format. Yeah, probably a good idea. Done. > > @@ -281,6 +384,9 @@ grub_xfs_read_inode (struct grub_xfs_data *data, = grub_uint64_t ino, > > grub_uint64_t block =3D grub_xfs_inode_block (data, ino); > > int offset =3D grub_xfs_inode_offset (data, ino); > > =20 > > + grub_dprintf("xfs", "Reading inode (%llu) - %llu, %d\n", >=20 > PRIuGRUB_UINT64_T and drop casts. OK, done. Honza --=20 Jan Kara SUSE Labs, CR