From 0ffcda29e8a05a139593a46dea6ef75efdc6e805 Mon Sep 17 00:00:00 2001 From: Hans Holmberg Date: Tue, 8 Oct 2024 10:52:04 +0000 Subject: [PATCH] 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 --- common/rc | 1 + 1 file changed, 1 insertion(+) 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) -- 2.50.1