diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-08-21 20:47:58 +0800 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-09-05 03:22:14 +0800 |
commit | ff3058e3bb5644803cdb7836bbfe11e8c5fbc5db (patch) | |
tree | b6047d5e4ab7ff46fc2c1ede4a43c291266b2c2f /include/envfs.h | |
parent | f7edad7cbf4560902083df5ecc912b2d3f91ba28 (diff) | |
download | barebox-ff3058e3bb5644803cdb7836bbfe11e8c5fbc5db.tar.gz barebox-ff3058e3bb5644803cdb7836bbfe11e8c5fbc5db.tar.xz |
envfs: introduce version major and minor
they are store in the super block at byte 16th and 17th.
set the verison at 0.1
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'include/envfs.h')
-rw-r--r-- | include/envfs.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/envfs.h b/include/envfs.h index ba976d6d13..c6df8c5048 100644 --- a/include/envfs.h +++ b/include/envfs.h @@ -5,6 +5,9 @@ #include <asm/byteorder.h> #endif +#define ENVFS_MAJOR 0 +#define ENVFS_MINOR 1 + #define ENVFS_MAGIC 0x798fba79 /* some random number */ #define ENVFS_INODE_MAGIC 0x67a8c78d #define ENVFS_END_MAGIC 0x6a87d6cd @@ -29,8 +32,10 @@ struct envfs_super { uint32_t priority; uint32_t crc; /* crc for the data */ uint32_t size; /* size of data */ + uint8_t major; /* major */ + uint8_t minor; /* minor */ + uint16_t future; /* reserved for future use */ uint32_t flags; /* feature flags */ - uint32_t future; /* reserved for future use */ uint32_t sb_crc; /* crc for the superblock */ }; |