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 /common/environment.c | |
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 'common/environment.c')
-rw-r--r-- | common/environment.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/environment.c b/common/environment.c index 52ce0de1da..8efed978f6 100644 --- a/common/environment.c +++ b/common/environment.c @@ -125,6 +125,8 @@ int envfs_save(char *filename, char *dirname) super = (struct envfs_super *)buf; super->magic = ENVFS_32(ENVFS_MAGIC); + super->major = ENVFS_MAJOR; + super->minor = ENVFS_MINOR; super->size = ENVFS_32(size); /* second pass: copy files to buffer */ |