+12
−0
+6
−0
+1
−0
Loading
Add a function to get the number of zones for a zoned namespace. Since the ZNS specification does not allow zone size == 0, divide by zero should not be possible on a spec compliant drive. Signed-off-by:Niklas Cassel <niklas.cassel@wdc.com> Change-Id: I15e0ac8a72e244e248b7fb44f7156b182ecd98b4 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4792 Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI