Spdk/test/unit/lib/bdev
lorneli 0744f10860 bdev/gpt: support parsing secondary partition table
Modify existing code of parsing primary partition table to support parsing
the secondary.

Main difference of these two tables is that they have inverse buffer layout.
For primary table, header is in front of partition entries. And for secondary
table, header is after partition entries. So add helper functions to extract
header and partition entries buffer region from primary or secondary table
based on current parse phase.

Split the exported funtion spdk_gpt_parse into two functions spdk_gpt_parse_mbr
and spdk_gpt_parse_partition_table. So spdk_gpt_parse_partition_table could be
used to parse both primary and secondary table.

Change-Id: I7f7827e0ee7e3f1b2e88c56607ee5b702fb2490c
Signed-off-by: lorneli <lorneli@163.com>
Reviewed-on: https://review.gerrithub.io/c/441200
Reviewed-by: wuzhouhui <wuzhouhui@kingsoft.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: GangCao <gang.cao@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2019-02-01 14:53:40 +00:00
..
bdev_raid.c thread: Rename spdk_thread_msg to spdk_msg_fn 2018-12-18 23:31:08 +00:00
bdev.c histograms: add unit tests for public bdev api 2019-01-22 17:06:52 +00:00
crypto.c test/crypto_ut: change alignment of allocation 2019-01-29 08:47:07 +00:00
gpt bdev/gpt: support parsing secondary partition table 2019-02-01 14:53:40 +00:00
mt QoS/Bdev: add the Read/Write separate bandwidth rate limits 2019-01-22 23:21:43 +00:00
part.c test: Use ut_multithread framework in bdev/part test 2018-12-23 00:56:01 +00:00
pmem test: Use ut_multithread framework in bdev/pmem 2019-01-15 16:53:12 +00:00
scsi_nvme.c build: remove duplicate spdk.app.mk includes 2018-12-11 18:07:53 +00:00
vbdev_lvol.c lvol: add option to change default data erase method 2019-01-23 22:25:37 +00:00
Makefile bdev: Add crypto virtual bdev module 2018-09-17 21:23:14 +00:00