public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <djwong@kernel.org>
To: Daniel Kiper <dkiper@net-space.pl>
Cc: grub-devel@gnu.org, linux-xfs@vger.kernel.org
Subject: Re: [PATCH] fs/xfs: add new superblock features added in Linux 6.12/6.13
Date: Mon, 24 Feb 2025 08:49:31 -0800	[thread overview]
Message-ID: <20250224164931.GD3028674@frogsfrogsfrogs> (raw)
In-Reply-To: <20250224162830.x6bbko7ce6cfdocn@tomti.i.net-space.pl>

On Mon, Feb 24, 2025 at 05:28:30PM +0100, Daniel Kiper wrote:
> On Mon, Feb 03, 2025 at 03:41:22PM -0800, Darrick J. Wong via Grub-devel wrote:
> > From: Darrick J. Wong <djwong@kernel.org>
> >
> > The Linux port of XFS added a few new features in 2024.  The existing
> > grub driver doesn't attempt to read or write any of the new metadata, so
> > all three can be added to the incompat allowlist.
> >
> > Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
> 
> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
> 
> ... but one nit below...
> 
> > ---
> >  grub-core/fs/xfs.c |   17 ++++++++++++++++-
> >  1 file changed, 16 insertions(+), 1 deletion(-)
> >
> > diff --git a/grub-core/fs/xfs.c b/grub-core/fs/xfs.c
> > index 8e02ab4a301424..5d809a770a1576 100644
> > --- a/grub-core/fs/xfs.c
> > +++ b/grub-core/fs/xfs.c
> > @@ -89,6 +89,9 @@ GRUB_MOD_LICENSE ("GPLv3+");
> >  #define XFS_SB_FEAT_INCOMPAT_BIGTIME    (1 << 3)        /* large timestamps */
> >  #define XFS_SB_FEAT_INCOMPAT_NEEDSREPAIR (1 << 4)       /* needs xfs_repair */
> >  #define XFS_SB_FEAT_INCOMPAT_NREXT64 (1 << 5)           /* large extent counters */
> > +#define XFS_SB_FEAT_INCOMPAT_EXCHRANGE  (1 << 6)        /* exchangerange supported */
> > +#define XFS_SB_FEAT_INCOMPAT_PARENT     (1 << 7)        /* parent pointers */
> > +#define XFS_SB_FEAT_INCOMPAT_METADIR    (1 << 8)        /* metadata dir tree */
> >
> >  /*
> >   * Directory entries with ftype are explicitly handled by GRUB code.
> > @@ -98,6 +101,15 @@ GRUB_MOD_LICENSE ("GPLv3+");
> >   *
> >   * We do not currently verify metadata UUID, so it is safe to read filesystems
> >   * with the XFS_SB_FEAT_INCOMPAT_META_UUID feature.
> > + *
> > + * We do not currently replay the log, so it is safe to read filesystems
> > + * with the XFS_SB_FEAT_INCOMPAT_EXCHRANGE feature.
> > + *
> > + * We do not currently read directory parent pointers, so it is safe to read
> > + * filesystems with the XFS_SB_FEAT_INCOMPAT_EXCHRANGE feature.
> 
> s/XFS_SB_FEAT_INCOMPAT_EXCHRANGE/XFS_SB_FEAT_INCOMPAT_PARENT/?
> 
> I can fix it for you before push...

Oops, yes, that's correct.  Apologies for the copypasta. :/

Thanks for reviewing!

--D

> > + *
> > + * We do not currently look at realtime or quota metadata, so it is safe to
> > + * read filesystems with the XFS_SB_FEAT_INCOMPAT_METADIR feature.
> >   */
> >  #define XFS_SB_FEAT_INCOMPAT_SUPPORTED \
> >  	(XFS_SB_FEAT_INCOMPAT_FTYPE | \
> > @@ -105,7 +117,10 @@ GRUB_MOD_LICENSE ("GPLv3+");
> >  	 XFS_SB_FEAT_INCOMPAT_META_UUID | \
> >  	 XFS_SB_FEAT_INCOMPAT_BIGTIME | \
> >  	 XFS_SB_FEAT_INCOMPAT_NEEDSREPAIR | \
> > -	 XFS_SB_FEAT_INCOMPAT_NREXT64)
> > +	 XFS_SB_FEAT_INCOMPAT_NREXT64 | \
> > +	 XFS_SB_FEAT_INCOMPAT_EXCHRANGE | \
> > +	 XFS_SB_FEAT_INCOMPAT_PARENT | \
> > +	 XFS_SB_FEAT_INCOMPAT_METADIR)
> 
> Daniel

      reply	other threads:[~2025-02-24 16:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-03 23:41 [PATCH] fs/xfs: add new superblock features added in Linux 6.12/6.13 Darrick J. Wong
2025-02-24 16:28 ` Daniel Kiper
2025-02-24 16:49   ` Darrick J. Wong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250224164931.GD3028674@frogsfrogsfrogs \
    --to=djwong@kernel.org \
    --cc=dkiper@net-space.pl \
    --cc=grub-devel@gnu.org \
    --cc=linux-xfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox