numam-spdk/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
..
aio bdev/aio: Improve error check of config file parsing by spdk_strtol 2019-01-29 17:39:18 +00:00
crypto bdev/crypto: add notice when base bdev not available at create time 2019-02-01 12:37:02 +00:00
error bdev/error: remove an unnecessary "enabled" flag 2019-01-15 16:43:20 +00:00
ftl check_format: Verify #include syntax 2019-01-29 00:12:07 +00:00
gpt bdev/gpt: support parsing secondary partition table 2019-02-01 14:53:40 +00:00
iscsi bdev: Use not C++ style comments // but C-style comments /* */ 2018-10-31 22:01:47 +00:00
lvol lvol: add option to change default data erase method 2019-01-23 22:25:37 +00:00
malloc Make: Add deps for each shared obj individually 2018-10-09 21:45:26 +00:00
null bdev/null: Remove clearing errno duplicated with spdk_strtol 2019-01-29 17:39:18 +00:00
nvme string: spdk_strtol to delegate additional error checking 2019-01-29 00:10:57 +00:00
ocf OCF: add support of write_json_config 2019-01-29 06:10:36 +00:00
passthru bdev/passthru: add notice when base bdev not available at create time 2019-02-01 12:37:34 +00:00
pmem pmem: print logs on debug build 2018-12-05 15:20:07 +00:00
raid bdev/raid: raid_bdev_add_base_device: fix wrong param in log 2018-11-02 22:19:02 +00:00
rbd string: spdk_strtol to delegate additional error checking 2019-01-29 00:10:57 +00:00
rpc bdev: mark delete_bdev RPC deprecated 2019-01-30 00:48:23 +00:00
split bdev/split: Improve error check of config file parsing by spdk_strtol 2019-01-29 17:39:18 +00:00
virtio bdev/virtio: Remove deprecated remove_virtio_scsi_bdev rpc 2019-01-28 22:18:53 +00:00
bdev.c QoS: remove the limit on unmap kinds of I/O 2019-01-30 21:44:05 +00:00
Makefile OCF: add OCF module 2019-01-28 09:41:52 +00:00
part.c bdev: Improve spdk_bdev_open() to print string describing error number 2019-01-24 10:50:34 +00:00
scsi_nvme.c bdev: move error union to internal spdk_bdev_io struct 2018-06-26 20:04:07 +00:00
vtune.c mk: don't use '-include spdk/config.h' 2018-10-02 23:13:32 +00:00