Spdk/module/bdev
Jim Harris 3a39d90b03 bdev_gpt: add new SPDK partition type for off-by-one fix
The gpt bdev module has an off-by-one error.  When it
calculates the size of the partition, it simply does
"end - start", when really it should be "end - start + 1".

We cannot just fix it by changing the math here, any
consumers of the partition may have put down metadata
on the partition based on the old size.

So instead add a new SPDK partition type.  SPDK will keep
the existing off-by-one behavior when it finds the old
partition type, but will use the correct math when finding
the new partition type.

Fixes issue #2801.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I48eb48c781f1968b59e52b4477ca45e9c81eac11
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16298
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Mike Gerdts <mgerdts@nvidia.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
2023-01-24 17:19:35 +00:00
..
aio so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
compress so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
crypto so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
daos so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
delay so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
error so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
ftl so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
gpt bdev_gpt: add new SPDK partition type for off-by-one fix 2023-01-24 17:19:35 +00:00
iscsi so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
lvol so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
malloc so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
null so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
nvme bdev_nvme: Support multipath across all discovery contexts. 2023-01-24 15:26:28 +00:00
ocf so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
passthru so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
pmem so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
raid so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
rbd so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
split so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
uring so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
virtio so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
xnvme so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
zone_block so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
Makefile configure: rename --with-reduce --with-vbdev-compress 2022-12-08 12:55:27 +00:00