diff options
author | 2023-08-24 17:53:41 +0200 | |
---|---|---|
committer | 2023-08-29 10:50:38 +0200 | |
commit | 4b5d80f3d02096a9bb1f651f6b3401ba40877159 (patch) | |
tree | bfcbef05e5da298ec6a04d5041ea44b1ae4fb5ae /scripts/qapi/source.py | |
parent | file-posix: Clear bs->bl.zoned on error (diff) | |
download | qemu-4b5d80f3d02096a9bb1f651f6b3401ba40877159.tar.xz qemu-4b5d80f3d02096a9bb1f651f6b3401ba40877159.zip |
file-posix: Check bs->bl.zoned for zone info
Instead of checking bs->wps or bs->bl.zone_size for whether zone
information is present, check bs->bl.zoned. That is the flag that
raw_refresh_zoned_limits() reliably sets to indicate zone support. If
it is set to something other than BLK_Z_NONE, other values and objects
like bs->wps and bs->bl.zone_size must be non-null/zero and valid; if it
is not, we cannot rely on their validity.
Signed-off-by: Hanna Czenczek <hreitz@redhat.com>
Message-Id: <20230824155345.109765-3-hreitz@redhat.com>
Reviewed-by: Sam Li <faithilikerun@gmail.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions