| Message ID | 20260902194423.759355-2-cassel@kernel.org |
|---|---|
| State | New |
| Headers | show |
| Series | block: fix the zone write granularity and the zone append limit | expand |
diff --git a/block/file-posix.c b/block/file-posix.c index 9aad156aad..c0d6ee30e4 100644 --- a/block/file-posix.c +++ b/block/file-posix.c @@ -3598,7 +3598,7 @@ raw_co_zone_append(BlockDriverState *bs, if (*offset & zone_size_mask) { error_report("sector offset %" PRId64 " is not aligned to zone size " - "%" PRId32 "", *offset / 512, bs->bl.zone_size / 512); + "%" PRId64 "", *offset / 512, bs->bl.zone_size / 512); return -EINVAL; } diff --git a/include/block/block_int-common.h b/include/block/block_int-common.h index 147c08155f..7571ed9968 100644 --- a/include/block/block_int-common.h +++ b/include/block/block_int-common.h @@ -901,7 +901,7 @@ typedef struct BlockLimits { BlockZoneModel zoned; /* zone size expressed in bytes */ - uint32_t zone_size; + uint64_t zone_size; /* total number of zones */ uint32_t nr_zones;