From: Hans Holmberg Date: Tue, 8 Oct 2024 10:52:04 +0000 (+0000) Subject: common: make rt_ops local in _try_scratch_mkfs_sized X-Git-Tag: xfs-zoned-2024-21-07~87 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0ffcda29e8a05a139593a46dea6ef75efdc6e805;p=users%2Fhch%2Fxfstests-dev.git common: make rt_ops local in _try_scratch_mkfs_sized If we call _try_scratch_mkfs_size with $SCRATCH_RTDEV set followed by a call with $SCRATCH_RTDEV cleared, rt_ops will have stale size parameters that will cause mkfs.xfs to fail with: "size specified for non-existent rt subvolume" Make rt_ops local to fix this. Signed-off-by: Hans Holmberg Signed-off-by: Christoph Hellwig Reviewed-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Reviewed-by: Zorro Lang Signed-off-by: Zorro Lang --- diff --git a/common/rc b/common/rc index 317105849..2af26f23f 100644 --- a/common/rc +++ b/common/rc @@ -1030,6 +1030,7 @@ _try_scratch_mkfs_sized() local blocksize=$2 local def_blksz local blocksize_opt + local rt_ops case $FSTYP in xfs)