From: Christoph Hellwig <hch@lst.de>
To: David Timber <dxdt@dev.snart.me>
Cc: Zorro Lang <zlang@kernel.org>,
"Darrick J. Wong" <djwong@kernel.org>,
Christoph Hellwig <hch@lst.de>,
fstests@vger.kernel.org, Namjae Jeon <linkinjeon@kernel.org>,
Sungjong Seo <sj1557.seo@samsung.com>,
Yuezhang Mo <yuezhang.mo@sony.com>,
Hyunchul Lee <hyc.lee@gmail.com>,
Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Subject: Re: [PATCH] generic/740: set env for mkfs.exfat and mkfs.ntfs
Date: Wed, 17 Jun 2026 08:08:08 +0200 [thread overview]
Message-ID: <20260617060808.GA19702@lst.de> (raw)
In-Reply-To: <20260616165731.379595-1-dxdt@dev.snart.me>
On Wed, Jun 17, 2026 at 01:57:31AM +0900, David Timber wrote:
> +case "$FSTYP" in
> + exfat)
Please don't indent the matches in case statements (yes, we probably
have a few legacy cases that do it, but copy the right ones :))
> + # Some fsprogs were slow to implement foreign fs detection.
> + # For backward compatibility, mkfs.exfat refuses to format only
> + # when run from a tty. This env var should override the
> + # behaviour if supported.
I don't get the 'Some fsprogs' part here. Maybe just drop that line?
> ntfs)
> - # "quick" format that doesn't zero the entire device
> - postargs="--quick"
> + # "quick" format that doesn't zero the entire device. Use -F so
> + # that NTFS-3G mkfs formats the volume even if the scratch
> + # blockdev is not a partition.
> + postargs="-QF"
Why does this switch from the long to the short form quick argument?
> echo "=== Attempting $FSTYP overwrite of $fs..." >>$seqres.full
> - ${MKFS_PROG} -t $FSTYP $SCRATCH_DEV >>$seqres.full 2>&1
> + eval $mkfs_preop ${MKFS_PROG} -t $FSTYP $mkfs_preargs $SCRATCH_DEV $mkfs_postargs >>$seqres.full 2>&1
Maybe add a line break to keep the line at a reasonable length.
Also in doubt split the exfat and ntfs changes as they seem entirely
unrelated.
prev parent reply other threads:[~2026-06-17 6:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-16 16:57 [PATCH] generic/740: set env for mkfs.exfat and mkfs.ntfs David Timber
2026-06-17 6:08 ` Christoph Hellwig [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=20260617060808.GA19702@lst.de \
--to=hch@lst.de \
--cc=almaz.alexandrovich@paragon-software.com \
--cc=djwong@kernel.org \
--cc=dxdt@dev.snart.me \
--cc=fstests@vger.kernel.org \
--cc=hyc.lee@gmail.com \
--cc=linkinjeon@kernel.org \
--cc=sj1557.seo@samsung.com \
--cc=yuezhang.mo@sony.com \
--cc=zlang@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