summaryrefslogtreecommitdiffstats
path: root/include/envfs.h
diff options
context:
space:
mode:
authorJuergen Borleis <jbe@pengutronix.de>2014-07-31 12:39:01 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-08-01 08:24:00 +0200
commitc4c7b16588d22d99b7b9047fa0d0e1d8cb530774 (patch)
treee3bae7e92912bbe825bbda687a0e4aa7c6f90197 /include/envfs.h
parent1b937547b9b1cbc20cfa87f762bf22bc08d4610e (diff)
downloadbarebox-c4c7b16588d22d99b7b9047fa0d0e1d8cb530774.tar.gz
barebox-c4c7b16588d22d99b7b9047fa0d0e1d8cb530774.tar.xz
envfs: provide an intentional way to ignore an existing external environment
Add a simple flag to envfs to be able to mark an external environment as "not to be used". This change should not affect existing systems, because the current envfs implementation ensures the 'flags' member in the envfs master block is always zeroed. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/envfs.h')
-rw-r--r--include/envfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/envfs.h b/include/envfs.h
index 9b86398984..beae38acf5 100644
--- a/include/envfs.h
+++ b/include/envfs.h
@@ -43,6 +43,7 @@ struct envfs_super {
uint8_t minor; /* minor */
uint16_t future; /* reserved for future use */
uint32_t flags; /* feature flags */
+#define ENVFS_FLAGS_FORCE_BUILT_IN (1 << 0)
uint32_t sb_crc; /* crc for the superblock */
};