From 913691eccd13c1509470eb8b059aa0beecc6d8d8 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 25 Sep 2007 12:58:52 +0200 Subject: add directory handling for environment --- include/envfs.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'include/envfs.h') 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 -- cgit v1.2.3