From: Christoph Hellwig <hch@infradead.org>
To: "Darrick J. Wong" <darrick.wong@oracle.com>
Cc: xfs <linux-xfs@vger.kernel.org>,
Dave Chinner <david@fromorbit.com>,
Eric Sandeen <sandeen@redhat.com>,
Brian Foster <bfoster@redhat.com>
Subject: Re: [PATCH v3] xfs: deprecate the V4 format
Date: Mon, 14 Sep 2020 08:29:09 +0100 [thread overview]
Message-ID: <20200914072909.GC29046@infradead.org> (raw)
In-Reply-To: <20200911164311.GU7955@magnolia>
On Fri, Sep 11, 2020 at 09:43:11AM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <darrick.wong@oracle.com>
>
> The V4 filesystem format contains known weaknesses in the on-disk format
> that make metadata verification diffiult. In addition, the format will
> does not support dates past 2038 and will not be upgraded to do so.
> Therefore, we should start the process of retiring the old format to
> close off attack surfaces and to encourage users to migrate onto V5.
>
> Therefore, make XFS V4 support a configurable option. For the first
> period it will be default Y in case some distributors want to withdraw
> support early; for the second period it will be default N so that anyone
> who wishes to continue support can do so; and after that, support will
> be removed from the kernel.
>
> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
> ---
> v3: be a little more helpful about old xfsprogs and warn more loudly
> about deprecation
> v2: define what is a V4 filesystem, update the administrator guide
Whie this patch itself looks good, I think the ifdef as is is rather
silly as it just prevents mounting v4 file systems without reaping any
benefits from that.
So at very least we should add a little helper like this:
static inline bool xfs_sb_is_v4(truct xfs_sb *sbp)
{
if (IS_ENABLED(CONFIG_XFS_SUPPORT_V4))
return XFS_SB_VERSION_NUM(sbp) == XFS_SB_VERSION_4;
return false;
}
and use it in all the feature test macros to let the compile eliminate
all the dead code.
next prev parent reply other threads:[~2020-09-14 7:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-11 16:43 [PATCH v3] xfs: deprecate the V4 format Darrick J. Wong
2020-09-14 7:29 ` Christoph Hellwig [this message]
2020-09-14 19:48 ` Eric Sandeen
2020-09-14 19:59 ` Eric Sandeen
2020-09-14 21:12 ` Darrick J. Wong
2020-09-14 21:54 ` Dave Chinner
2020-09-14 22:12 ` Eric Sandeen
2020-09-15 22:33 ` Eric Sandeen
2020-09-16 0:07 ` Dave Chinner
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=20200914072909.GC29046@infradead.org \
--to=hch@infradead.org \
--cc=bfoster@redhat.com \
--cc=darrick.wong@oracle.com \
--cc=david@fromorbit.com \
--cc=linux-xfs@vger.kernel.org \
--cc=sandeen@redhat.com \
/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