
26 May
2017
26 May
'17
2:38 p.m.
On Sat, May 20, 2017 at 07:27:53PM -0700, alison@peloton-tech.com wrote:
From: Alison Chaiken alison@she-devel.com
In order to read the GPT, modify the partition name strings, and then write out a new GPT, the disk GUID is needed. While there is an existing accessor for the partition UUIDs, there is none yet for the disk GUID.
Signed-off-by: Alison Chaiken alison@peloton-tech.com
Overall looks good, a few style things:
- if (namestr != NULL)
setenv(namestr, disk_guid);
You can just if (namestr) here
[snip]
- } else if (strcmp(argv[1], "guid") == 0) {
if (argc == 5) strcpy(varname, argv[4]);
Go ahead and do this on multiple lines please. Thanks!
--
Tom