FS/XFS testing framework
 help / color / mirror / Atom feed
* [PATCH] common/rc: remove trailing space from _mread() default map_len
@ 2026-08-31 10:42 Prabhakar Pujeri
  2026-08-31 17:21 ` Darrick J. Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Prabhakar Pujeri @ 2026-08-31 10:42 UTC (permalink / raw)
  To: fstests; +Cc: Prabhakar Pujeri, Zorro Lang

The default map_len expansion contains a space before its closing brace,
so the variable includes trailing whitespace.  Its current unquoted use
tolerates that whitespace, but the value should contain only the computed
length and may be used differently in the future.

Remove the stray space and leave the surrounding expansion unchanged.

Signed-off-by: Prabhakar Pujeri <prabhakar.pujeri@dell.com>
---
 common/rc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/rc b/common/rc
index 02bdb31..2db85e5 100644
--- a/common/rc
+++ b/common/rc
@@ -176,7 +176,7 @@ _mread()
 	local file=$1
 	local offset=$2
 	local length=$3
-	local map_len=${4:-$(_round_up_to_page_boundary $(_get_filesize $file)) }
+	local map_len=${4:-$(_round_up_to_page_boundary $(_get_filesize $file))}
 
 	# Some callers expect xfs_io to crash with SIGBUS due to the mread,
 	# causing the shell to print "Bus error" to stderr.  To allow this
-- 
2.55.0


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

end of thread, other threads:[~2026-08-31 17:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-31 10:42 [PATCH] common/rc: remove trailing space from _mread() default map_len Prabhakar Pujeri
2026-08-31 17:21 ` Darrick J. Wong

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