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>
This commit is contained in:
parent
f7edad7cbf
commit
ff3058e3bb
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue