Spdk/test/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
..
bdevio test: a bit more thorough io check in bdevio 2022-11-28 20:09:48 +00:00
bdevperf Add SPDX header to various files 2022-11-29 08:27:51 +00:00
bdev_raid.sh bdev/raid0: Support resize when increasing the size of base bdevs 2023-01-17 19:45:34 +00:00
blockdev.sh bdev_gpt: add new SPDK partition type for off-by-one fix 2023-01-24 17:19:35 +00:00
Makefile bdevperf: promote bdevperf from test to example application 2022-11-16 09:52:41 +00:00
nbd_common.sh add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
nonarray.json json: fix parsing json problems when json config is invalid. 2022-09-02 07:32:21 +00:00
nonenclosed.json json: fix parsing json problems when json config is invalid. 2022-09-02 07:32:21 +00:00