summaryrefslogtreecommitdiff
path: root/host
diff options
context:
space:
mode:
authorMatt Delco <delco@chromium.org>2018-08-02 11:50:06 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-08-15 16:37:30 -0700
commit0c274a902539249db7e11d019dadfa0cbae1fd74 (patch)
tree490258b98281abfec39acfd7b554d532dd8ea46b /host
parent0f1de7b5fe7b4dbe12ed544ee7e0ae064393e898 (diff)
downloadvboot-0c274a902539249db7e11d019dadfa0cbae1fd74.tar.gz
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.h6
-rw-r--r--host/include/vboot_host.h1
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);