0744f10860
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> |
||
---|---|---|
.. | ||
aio | ||
crypto | ||
error | ||
ftl | ||
gpt | ||
iscsi | ||
lvol | ||
malloc | ||
null | ||
nvme | ||
ocf | ||
passthru | ||
pmem | ||
raid | ||
rbd | ||
rpc | ||
split | ||
virtio | ||
bdev.c | ||
Makefile | ||
part.c | ||
scsi_nvme.c | ||
vtune.c |