|
@@ -82,15 +82,15 @@
|
|
|
|
|
|
typedef struct {
|
|
typedef struct {
|
|
uint32_t v32;
|
|
uint32_t v32;
|
|
-} __attribute__((packed)) jint32_t;
|
|
|
|
|
|
+} jint32_t;
|
|
|
|
|
|
typedef struct {
|
|
typedef struct {
|
|
uint32_t m;
|
|
uint32_t m;
|
|
-} __attribute__((packed)) jmode_t;
|
|
|
|
|
|
+} jmode_t;
|
|
|
|
|
|
typedef struct {
|
|
typedef struct {
|
|
uint16_t v16;
|
|
uint16_t v16;
|
|
-} __attribute__((packed)) jint16_t;
|
|
|
|
|
|
+} jint16_t;
|
|
|
|
|
|
struct jffs2_unknown_node
|
|
struct jffs2_unknown_node
|
|
{
|
|
{
|
|
@@ -99,7 +99,7 @@ struct jffs2_unknown_node
|
|
jint16_t nodetype;
|
|
jint16_t nodetype;
|
|
jint32_t totlen; /* So we can skip over nodes we don't grok */
|
|
jint32_t totlen; /* So we can skip over nodes we don't grok */
|
|
jint32_t hdr_crc;
|
|
jint32_t hdr_crc;
|
|
-} __attribute__((packed));
|
|
|
|
|
|
+};
|
|
|
|
|
|
struct jffs2_raw_dirent
|
|
struct jffs2_raw_dirent
|
|
{
|
|
{
|
|
@@ -117,7 +117,7 @@ struct jffs2_raw_dirent
|
|
jint32_t node_crc;
|
|
jint32_t node_crc;
|
|
jint32_t name_crc;
|
|
jint32_t name_crc;
|
|
uint8_t name[0];
|
|
uint8_t name[0];
|
|
-} __attribute__((packed));
|
|
|
|
|
|
+};
|
|
|
|
|
|
/* The JFFS2 raw inode structure: Used for storage on physical media. */
|
|
/* The JFFS2 raw inode structure: Used for storage on physical media. */
|
|
/* The uid, gid, atime, mtime and ctime members could be longer, but
|
|
/* The uid, gid, atime, mtime and ctime members could be longer, but
|
|
@@ -149,7 +149,7 @@ struct jffs2_raw_inode
|
|
jint32_t data_crc; /* CRC for the (compressed) data. */
|
|
jint32_t data_crc; /* CRC for the (compressed) data. */
|
|
jint32_t node_crc; /* CRC for the raw inode (excluding data) */
|
|
jint32_t node_crc; /* CRC for the raw inode (excluding data) */
|
|
uint8_t data[0];
|
|
uint8_t data[0];
|
|
-} __attribute__((packed));
|
|
|
|
|
|
+};
|
|
|
|
|
|
struct jffs2_raw_summary
|
|
struct jffs2_raw_summary
|
|
{
|
|
{
|
|
@@ -163,7 +163,7 @@ struct jffs2_raw_summary
|
|
jint32_t sum_crc; /* summary information crc */
|
|
jint32_t sum_crc; /* summary information crc */
|
|
jint32_t node_crc; /* node crc */
|
|
jint32_t node_crc; /* node crc */
|
|
jint32_t sum[0]; /* inode summary info */
|
|
jint32_t sum[0]; /* inode summary info */
|
|
-} __attribute__((packed));
|
|
|
|
|
|
+};
|
|
|
|
|
|
union jffs2_node_union
|
|
union jffs2_node_union
|
|
{
|
|
{
|