]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
_scratch_mkfs_geom: Fix regex used for matching block size option
authorChandan Babu R <chandanbabu@kernel.org>
Mon, 25 Sep 2023 13:48:05 +0000 (19:18 +0530)
committerZorro Lang <zlang@kernel.org>
Thu, 5 Oct 2023 14:38:17 +0000 (22:38 +0800)
commit809fd13575df7ea09223f7394676d16ba1c25c4c
tree095c488cc4c0aba33310216276efe8ce21ca03ee
parentfb817fa4be6b51162b4e783596cc47957f28786f
_scratch_mkfs_geom: Fix regex used for matching block size option

The regular expression used by _scratch_mkfs_geom() to match mkfs.xfs' block
size argument interprets the character 'b' as optional. It should actually
interpret whitespace as optional.

This causes generic/223 to fail when testing an XFS filesystem which uses an
external log device along with the -lsize option. In this case, the original
value of -lsize is replaced with the value of $blocksize.

_scratch_mkfs_sized() also uses the same incorrect regex.

Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc