summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e57244d)
enum sizes are not fixed, so it is better to specify an actual sized
storage element.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
YAFFS_ECC_RESULT_UNFIXED
};
YAFFS_ECC_RESULT_UNFIXED
};
+/*
+ * Object type enum:
+ * When this is stored in flash we store it as a u32 instead
+ * to prevent any alignment change issues as compiler variants change.
+ */
+
enum yaffs_obj_type {
YAFFS_OBJECT_TYPE_UNKNOWN,
YAFFS_OBJECT_TYPE_FILE,
enum yaffs_obj_type {
YAFFS_OBJECT_TYPE_UNKNOWN,
YAFFS_OBJECT_TYPE_FILE,
/* This is the object structure as stored on NAND */
struct yaffs_obj_hdr {
/* This is the object structure as stored on NAND */
struct yaffs_obj_hdr {
- enum yaffs_obj_type type;
+ u32 type; /* enum yaffs_obj_type */
/* Apply to everything */
int parent_obj_id;
/* Apply to everything */
int parent_obj_id;
- enum yaffs_obj_type variant_type;
+ u32 variant_type; /* enum yaffs_object_type */
union yaffs_obj_var variant;
union yaffs_obj_var variant;
u32 obj_id;
u32 parent_id;
int hdr_chunk;
u32 obj_id;
u32 parent_id;
int hdr_chunk;
- enum yaffs_obj_type variant_type:3;
+ u32 variant_type:3; /* enum yaffs_obj_type */
u8 deleted:1;
u8 soft_del:1;
u8 unlinked:1;
u8 deleted:1;
u8 soft_del:1;
u8 unlinked:1;