Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Unified Diff: show.c

Issue 1662003: Add our Chrome OS Type GUIDs to the list that gpt recognizes. (Closed)
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sys_gpt.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: show.c
diff --git a/show.c b/show.c
index eb0f617906ee8978526ee7aa068eb74cde13887c..b2a9d37adef46fadff16129317c9163106ac3144 100644
--- a/show.c
+++ b/show.c
@@ -67,6 +67,9 @@ friendly(uuid_t *t)
static uuid_t ufs = GPT_ENT_TYPE_FREEBSD_UFS;
static uuid_t vinum = GPT_ENT_TYPE_FREEBSD_VINUM;
static uuid_t zfs = GPT_ENT_TYPE_FREEBSD_ZFS;
+ static uuid_t chrome_kernel = GPT_ENT_TYPE_CHROMEOS_KERNEL;
+ static uuid_t chrome_rootfs = GPT_ENT_TYPE_CHROMEOS_ROOTFS;
+ static uuid_t chrome_future = GPT_ENT_TYPE_CHROMEOS_RESERVED;
static char buf[80];
char *s;
@@ -96,6 +99,12 @@ friendly(uuid_t *t)
return ("Windows reserved");
if (uuid_equal(t, &hfs, NULL))
return ("Apple HFS");
+ if (uuid_equal(t, &chrome_kernel, NULL))
+ return ("Chrome OS kernel");
+ if (uuid_equal(t, &chrome_rootfs, NULL))
+ return ("Chrome OS rootfs");
+ if (uuid_equal(t, &chrome_future, NULL))
+ return ("Chrome OS reserved");
unfriendly:
uuid_to_string(t, &s, NULL);
« no previous file with comments | « no previous file | sys_gpt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698