summaryrefslogtreecommitdiffstats
path: root/lib/types/types.h
diff options
context:
space:
mode:
authorSam Mendoza-Jonas <sam@mendozajonas.com>2016-02-26 10:39:55 +1100
committerSam Mendoza-Jonas <sam@mendozajonas.com>2016-02-26 12:39:37 +1100
commit72928ed32ab3684be74e4a3b90329dee7cfa6bbb (patch)
tree27a1237cee90d222e0dc7b0e361e4c683270ec57 /lib/types/types.h
parent11284780b9aa525dd659bd85d6374040630db008 (diff)
downloadtalos-petitboot-72928ed32ab3684be74e4a3b90329dee7cfa6bbb.tar.gz
talos-petitboot-72928ed32ab3684be74e4a3b90329dee7cfa6bbb.zip
Use 'Primary' instead of 'Current' for flash sides
When queried libflash will return the 'first' flash side (ie. the one with the lowest TOC address), however we label this the 'Current' side which is incorrect if the machine has booted from the alternate side. A future fix will inlcude additional platform logic to determine which flash side is current; in the interim label the first flash side as 'Primary' instead of 'Current'. Signed-off-by: Sam Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'lib/types/types.h')
-rw-r--r--lib/types/types.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/types/types.h b/lib/types/types.h
index 63c1c7c..6ff4620 100644
--- a/lib/types/types.h
+++ b/lib/types/types.h
@@ -93,9 +93,9 @@ struct blockdev_info {
struct system_info {
char *type;
char *identifier;
- char **platform_current;
+ char **platform_primary;
char **platform_other;
- unsigned int n_current;
+ unsigned int n_primary;
unsigned int n_other;
char **bmc_current;
char **bmc_golden;
OpenPOWER on IntegriCloud