diff options
| author | Max Reitz <mreitz@redhat.com> | 2021-02-10 10:51:28 +0100 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2021-02-15 15:10:14 +0100 |
| commit | b34cdf32256e59e0183fe0f7ee5b5f4865d9ccc0 (patch) | |
| tree | c0534c1b7d365cb7ba1e65647c3aa4c14fd7028a /blockjob.c | |
| parent | 15d40e9204eb3d89577187f117a1dde2237bdc4d (diff) | |
| download | focaccia-qemu-b34cdf32256e59e0183fe0f7ee5b5f4865d9ccc0.tar.gz focaccia-qemu-b34cdf32256e59e0183fe0f7ee5b5f4865d9ccc0.zip | |
iotests: Consistent $IMGOPTS boundary matching
To disallow certain refcount_bits values, some _unsupported_imgopts invocations look like "refcount_bits=1[^0-9]", i.e. they match an integer boundary with [^0-9]. This expression does not match the end of the string, though, so it breaks down when refcount_bits is the last option (which it tends to be after the rewrite of the check script in Python). Those invocations could use \b or \> instead, but those are not portable. They could use something like \([^0-9]\|$\), but that would be cumbersome. To make it simple and keep the existing invocations working, just let _unsupported_imgopts match the regex against $IMGOPTS plus a trailing space. Suggested-by: Eric Blake <eblake@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com> Message-Id: <20210210095128.22732-1-mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'blockjob.c')
0 files changed, 0 insertions, 0 deletions