Niklas Cassel be3ff9c0b5 nvme: add function to get ZNS num zones
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
2020-10-21 12:18:44 +00:00
..
2020-10-21 02:25:45 +00:00
2020-10-15 08:23:39 +00:00
2020-10-15 08:23:39 +00:00
2020-10-15 08:23:39 +00:00
2020-10-19 10:02:10 +00:00
2020-10-15 08:23:39 +00:00
2020-10-15 08:23:39 +00:00
2020-10-15 08:23:39 +00:00
2020-10-15 08:23:39 +00:00
2020-10-15 08:23:39 +00:00
2020-10-15 08:23:39 +00:00
2020-10-15 08:23:39 +00:00
2020-10-15 08:23:39 +00:00
2020-10-15 08:23:39 +00:00
2020-10-15 08:23:39 +00:00
2020-10-15 08:23:39 +00:00
2020-09-15 07:12:44 +00:00
2020-10-15 08:23:39 +00:00