]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
common: make rt_ops local in _try_scratch_mkfs_sized
authorHans Holmberg <Hans.Holmberg@wdc.com>
Tue, 8 Oct 2024 10:52:04 +0000 (10:52 +0000)
committerZorro Lang <zlang@kernel.org>
Thu, 10 Oct 2024 08:03:40 +0000 (16:03 +0800)
commit0ffcda29e8a05a139593a46dea6ef75efdc6e805
tree6ca2f913f9db9269cfcb7893b93bf856587925f6
parent034e5655933729ef334b6355c94607d115414282
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 <hans.holmberg@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc