hw/block/nvme: remove irrelevant zone resource checks
It is not an error to report more active/open zones supported than the number of zones in the namespace. Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Keith Busch <kbusch@kernel.org>
This commit is contained in:
parent
9d394c80f1
commit
83e85b614d
@ -210,19 +210,6 @@ static int nvme_ns_zoned_check_calc_geometry(NvmeNamespace *ns, Error **errp)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (ns->params.max_open_zones > ns->num_zones) {
|
||||
error_setg(errp,
|
||||
"max_open_zones value %u exceeds the number of zones %u",
|
||||
ns->params.max_open_zones, ns->num_zones);
|
||||
return -1;
|
||||
}
|
||||
if (ns->params.max_active_zones > ns->num_zones) {
|
||||
error_setg(errp,
|
||||
"max_active_zones value %u exceeds the number of zones %u",
|
||||
ns->params.max_active_zones, ns->num_zones);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (ns->params.max_active_zones) {
|
||||
if (ns->params.max_open_zones > ns->params.max_active_zones) {
|
||||
error_setg(errp, "max_open_zones (%u) exceeds max_active_zones (%u)",
|
||||
|
Loading…
Reference in New Issue
Block a user