Spdk/lib/bdev/gpt
lorneli fdb675cad5 bdev/gpt: read secondary partition table if the primary is broken
After passing the check of protective mbr, there is a high probability that
this bdev is in gpt format. If parsing primary table fails, read the secondary
table and try to get partition info from it. When parsing secondary table
successfully, add a warning log to notify users that primary table is broken.

Change-Id: I4f16edcdd57b9cde8d8cc74ec88ba95b97bd6b63
Signed-off-by: lorneli <lorneli@163.com>
Reviewed-on: https://review.gerrithub.io/c/441201
Reviewed-by: GangCao <gang.cao@intel.com>
Reviewed-by: wuzhouhui <wuzhouhui@kingsoft.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.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
..
gpt.c bdev/gpt: support parsing secondary partition table 2019-02-01 14:53:40 +00:00
gpt.h bdev/gpt: support parsing secondary partition table 2019-02-01 14:53:40 +00:00
Makefile bdev: remove "v" prefix from vbdev library names 2018-11-01 21:25:55 +00:00
vbdev_gpt.c bdev/gpt: read secondary partition table if the primary is broken 2019-02-01 14:53:40 +00:00