diff options
author | Matt Delco <delco@chromium.org> | 2018-08-02 11:50:06 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-08-15 16:37:30 -0700 |
commit | 0c274a902539249db7e11d019dadfa0cbae1fd74 (patch) | |
tree | 490258b98281abfec39acfd7b554d532dd8ea46b /host | |
parent | 0f1de7b5fe7b4dbe12ed544ee7e0ae064393e898 (diff) | |
download | vboot-stabilize-11020.B.tar.gz |
cgpt: add edit commandstabilize-nocturne-10986.Bstabilize-11021.84.Bstabilize-11020.Bstabilize-11005.Bstabilize-10985.Brelease-R70-11021.Bfirmware-servo-11011.Bfirmware-nocturne-10984.Bfactory-nocturne-10984.B
This change adds a command to cgpt to
change the GUID of the drive.
BRANCH=none
BUG=None
TEST=Compiled and ran utility to verify that GUID changes.
Also verified that the new and existing tests completed
successfully.
Change-Id: Ia8a815447509626312e2b06c6f293901290c73c3
Signed-off-by: Matt Delco <delco@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1171834
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'host')
-rw-r--r-- | host/include/cgpt_params.h | 6 | ||||
-rw-r--r-- | host/include/vboot_host.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/host/include/cgpt_params.h b/host/include/cgpt_params.h index 7c4a4b29..5bd1f76a 100644 --- a/host/include/cgpt_params.h +++ b/host/include/cgpt_params.h @@ -48,6 +48,12 @@ typedef struct CgptAddParams { int set_raw; } CgptAddParams; +typedef struct CgptEditParams { + char *drive_name; + Guid unique_guid; + int set_unique; +} CgptEditParams; + typedef struct CgptShowParams { char *drive_name; uint64_t drive_size; diff --git a/host/include/vboot_host.h b/host/include/vboot_host.h index 9ebe4040..cb0d0f3c 100644 --- a/host/include/vboot_host.h +++ b/host/include/vboot_host.h @@ -19,6 +19,7 @@ /* partition table manipulation */ int CgptCreate(CgptCreateParams *params); int CgptAdd(CgptAddParams *params); +int CgptEdit(CgptEditParams *params); int CgptSetAttributes(CgptAddParams *params); int CgptGetPartitionDetails(CgptAddParams *params); int CgptBoot(CgptBootParams *params); |