summaryrefslogtreecommitdiffstats
path: root/libflash/libffs.c
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2017-10-11 15:23:44 -0500
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-11-09 22:11:44 -0600
commitb786e7ba1d34c5a4d8baa6304f4d930539cefac8 (patch)
tree97f072c5a41a7ffc9a3166f6c139a839c2cf7c21 /libflash/libffs.c
parent370b8866871b5c2cf3286afbf19fc90282cb3508 (diff)
downloadblackbird-skiboot-b786e7ba1d34c5a4d8baa6304f4d930539cefac8.tar.gz
blackbird-skiboot-b786e7ba1d34c5a4d8baa6304f4d930539cefac8.zip
pflash: Support for volatile flag
The volatile flag was added to the pnor image to indicate partitions that are cleared during a host power off. Display this flag from the pflash command. Signed-off-by: Adriana Kobylak <anoo@us.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libflash/libffs.c')
-rw-r--r--libflash/libffs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libflash/libffs.c b/libflash/libffs.c
index 038f5942..87c5197d 100644
--- a/libflash/libffs.c
+++ b/libflash/libffs.c
@@ -723,7 +723,9 @@ int ffs_entry_user_set(struct ffs_entry *ent, struct ffs_entry_user *user)
if (user->vercheck & ~(FFS_VERCHECK_SHA512V | FFS_VERCHECK_SHA512EC))
return -1;
if (user->miscflags & ~(FFS_MISCFLAGS_PRESERVED | FFS_MISCFLAGS_BACKUP |
- FFS_MISCFLAGS_READONLY | FFS_MISCFLAGS_REPROVISION))
+ FFS_MISCFLAGS_READONLY | FFS_MISCFLAGS_REPROVISION |
+ FFS_MISCFLAGS_VOLATILE
+))
return -1;
memcpy(&ent->user, user, sizeof(*user));
OpenPOWER on IntegriCloud