Re: [PATCH 2/2] generic/740: add --force option to mkfs.ntfs

"Darrick J. Wong" <[email protected]> Thu, 25 Jun 2026 11:45:44 -0700
Newsgroups org.kernel.vger.fstests
Message-ID <20260625184544.GR6070@frogsfrogsfrogs>
On Fri, Jun 19, 2026 at 04:22:36AM +0900, David Timber wrote:
> mkntfs refuses to format the target if it's backed by a "real" device
> but not a partition to maintain compatibility with Windows. When
> formatting the scratch device in NTFS for testing, this behaviour has
> to be overridden so that any type of blockdev can be used as a scratch
> device.
> 
> Signed-off-by: David Timber <[email protected]>
> ---
>  tests/generic/740 | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/generic/740 b/tests/generic/740
> index 4f8bf099..718d983d 100755
> --- a/tests/generic/740
> +++ b/tests/generic/740
> @@ -72,8 +72,10 @@ do
>  		postargs=2000
>  		;;
>  	ntfs)
> -		# "quick" format that doesn't zero the entire device
> -		postargs="--quick"
> +		# "quick" format that doesn't zero the entire device. Use -F so

"Use --force..." ?

--D

> +		# that NTFS-3G mkfs formats the volume even if the scratch
> +		# blockdev is not a partition.
> +		postargs="--quick --force"
>  		;;
>  	reiser4)
>  		preop="echo y |"
> -- 
> 2.54.0
> 
>