FS/XFS testing framework
 help / color / mirror / Atom feed
* [PATCHSET 1/2] fstests: random fixes for v2024.09.29
@ 2024-10-01 16:48 Darrick J. Wong
  2024-10-01 16:48 ` [PATCH 1/1] common/populate: fix bash syntax error in _fill_fs Darrick J. Wong
  0 siblings, 1 reply; 3+ messages in thread
From: Darrick J. Wong @ 2024-10-01 16:48 UTC (permalink / raw)
  To: zlang, djwong; +Cc: allison.henderson, fstests, linux-xfs

Hi all,

Here's the usual odd fixes for fstests.  Most of these are cleanups and
bug fixes that have been aging in my djwong-wtf branch forever.

If you're going to start using this code, I strongly recommend pulling
from my git trees, which are linked below.

With a bit of luck, this should all go splendidly.
Comments and questions are, as always, welcome.

--D

kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=random-fixes

xfsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=random-fixes

fstests git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=random-fixes
---
Commits in this patchset:
 * common/populate: fix bash syntax error in _fill_fs
---
 common/populate |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] common/populate: fix bash syntax error in _fill_fs
  2024-10-01 16:48 [PATCHSET 1/2] fstests: random fixes for v2024.09.29 Darrick J. Wong
@ 2024-10-01 16:48 ` Darrick J. Wong
  2024-10-02  5:44   ` Christoph Hellwig
  0 siblings, 1 reply; 3+ messages in thread
From: Darrick J. Wong @ 2024-10-01 16:48 UTC (permalink / raw)
  To: zlang, djwong; +Cc: allison.henderson, fstests, linux-xfs

From: Darrick J. Wong <djwong@kernel.org>

In bash, one does not set a variable by prepending the dollar sign to
the variable name.  Amazingly, this was copied verbatim from generic/256
in 2016 and hasn't been caught since its introduction in 2011. :(

Cc: allison.henderson@oracle.com
Fixes: 815015e9ee ("generic: make 17[1-4] work well when btrfs compression is enabled")
Fixes: b55fb0807c ("xfstests: Add ENOSPC Hole Punch Test")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
 common/populate |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/common/populate b/common/populate
index 9fda19df06..88c8ba2b32 100644
--- a/common/populate
+++ b/common/populate
@@ -945,7 +945,7 @@ _fill_fs()
 	echo $testio | grep -q "Operation not supported" && use_falloc=0
 
 	if [ $file_size -lt $block_size ]; then
-		$file_size = $block_size
+		file_size=$block_size
 	fi
 
 	while [ $file_size -ge $block_size ]; do


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] common/populate: fix bash syntax error in _fill_fs
  2024-10-01 16:48 ` [PATCH 1/1] common/populate: fix bash syntax error in _fill_fs Darrick J. Wong
@ 2024-10-02  5:44   ` Christoph Hellwig
  0 siblings, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2024-10-02  5:44 UTC (permalink / raw)
  To: Darrick J. Wong; +Cc: zlang, allison.henderson, fstests, linux-xfs

Looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-10-02  5:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-01 16:48 [PATCHSET 1/2] fstests: random fixes for v2024.09.29 Darrick J. Wong
2024-10-01 16:48 ` [PATCH 1/1] common/populate: fix bash syntax error in _fill_fs Darrick J. Wong
2024-10-02  5:44   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox