diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-09-25 12:58:52 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2007-09-25 12:58:52 +0200 |
commit | 913691eccd13c1509470eb8b059aa0beecc6d8d8 (patch) | |
tree | 114ef2d910ae37d450031a1b1e5814768d5e8dd7 /include/envfs.h | |
parent | fd4cc5d0d370c4cf10a3a8d3884ea69cbd04305b (diff) | |
download | barebox-913691eccd13c1509470eb8b059aa0beecc6d8d8.tar.gz barebox-913691eccd13c1509470eb8b059aa0beecc6d8d8.tar.xz |
add directory handling for environment
Diffstat (limited to 'include/envfs.h')
-rw-r--r-- | include/envfs.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/envfs.h b/include/envfs.h index b04c3b8b20..bc043c9bbb 100644 --- a/include/envfs.h +++ b/include/envfs.h @@ -10,8 +10,12 @@ struct envfs_inode { uint32_t magic; /* 0x67a8c78d */ uint32_t crc; /* crc for this inode and corresponding data */ uint32_t size; /* data size in bytes */ - char name[32]; - char data[0]; + uint32_t namelen; /* The length of the filename _including_ the trailing 0 */ + char data[0]; /* The filename (zero terminated) + padding to 4 byte boundary + * followed by the data for this inode. + * The next inode follows after the data + padding to 4 byte + * boundary. + */ }; /* @@ -21,7 +25,7 @@ struct envfs_super { uint32_t magic; /* 0x798fba79 - random number */ uint32_t priority; uint32_t flags; /* feature flags */ - uint32_t future; /* reserved for future use */ + uint32_t future; /* reserved for future use */ }; #if __BYTE_ORDER == __LITTLE_ENDIAN |