From: Carlos Maiolino <cem@kernel.org>
To: "Darrick J. Wong" <djwong@kernel.org>
Cc: sandeen@sandeen.net, linux-xfs@vger.kernel.org
Subject: Re: [PATCH 1/2] mkfs: ignore data blockdev stripe geometry for small filesystems
Date: Mon, 25 Jul 2022 09:13:35 +0200 [thread overview]
Message-ID: <20220725071335.wouylfmes63s56t3@orion> (raw)
In-Reply-To: <165826710360.3268874.3266999101684853751.stgit@magnolia>
> ---
> mkfs/xfs_mkfs.c | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
>
> diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c
> index a5e2df76..68d6bd18 100644
> --- a/mkfs/xfs_mkfs.c
> +++ b/mkfs/xfs_mkfs.c
> @@ -2583,6 +2583,20 @@ _("%s: Volume reports invalid stripe unit (%d) and stripe width (%d), ignoring.\
> progname, BBTOB(ft->dsunit), BBTOB(ft->dswidth));
> ft->dsunit = 0;
> ft->dswidth = 0;
> + } else if (cfg->dblocks < GIGABYTES(1, cfg->blocklog)) {
> + /*
> + * Don't use automatic stripe detection if the device
> + * size is less than 1GB because the performance gains
> + * on such a small system are not worth the risk that
> + * we'll end up with an undersized log.
> + */
> + if (ft->dsunit || ft->dswidth)
> + fprintf(stderr,
> +_("%s: small data volume, ignoring data volume stripe unit %d and stripe width %d\n"),
> + progname, ft->dsunit,
> + ft->dswidth);
> + ft->dsunit = 0;
> + ft->dswidth = 0;
> } else {
> dsunit = ft->dsunit;
> dswidth = ft->dswidth;
>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
--
Carlos Maiolino
next prev parent reply other threads:[~2022-07-25 7:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <jClQwnsHFSREVSitFnWiO2spgHLt1kaTBHjtDn1V9WeXRB1qq0BOBhwGw25IoTL-aMmeeElWwy2pVsHv9ywuMA==@protonmail.internalid>
2022-07-19 21:44 ` [PATCHSET v3 0/2] mkfs: stop allowing tiny filesystems Darrick J. Wong
2022-07-19 21:45 ` [PATCH 1/2] mkfs: ignore data blockdev stripe geometry for small filesystems Darrick J. Wong
2022-07-25 7:13 ` Carlos Maiolino [this message]
2022-07-19 21:45 ` [PATCH 2/2] mkfs: stop allowing tiny filesystems Darrick J. Wong
2022-07-25 7:52 ` Carlos Maiolino
2022-07-25 7:59 ` [PATCHSET v3 0/2] " Carlos Maiolino
2022-07-25 21:04 ` Darrick J. Wong
2022-07-26 19:57 [PATCHSET v4 " Darrick J. Wong
2022-07-26 19:57 ` [PATCH 1/2] mkfs: ignore data blockdev stripe geometry for small filesystems Darrick J. Wong
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=20220725071335.wouylfmes63s56t3@orion \
--to=cem@kernel.org \
--cc=djwong@kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=sandeen@sandeen.net \
/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