X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=utils%2Fmkyaffs2image.c;h=b46f285258dfe3736e085c519d4ff4aba178eccd;hp=5292b667ae7f1639baef227529dce953ef051509;hb=468d72ba33d4e6624be97b5595a372e705f82649;hpb=7862c133d9d887fc9a939aefd69ed3403c287d54;ds=sidebyside diff --git a/utils/mkyaffs2image.c b/utils/mkyaffs2image.c index 5292b66..b46f285 100644 --- a/utils/mkyaffs2image.c +++ b/utils/mkyaffs2image.c @@ -242,7 +242,8 @@ static void object_header_little_to_big_endian(struct yaffs_obj_hdr* oh) oh->yst_mtime = SWAP32(oh->yst_mtime); oh->yst_ctime = SWAP32(oh->yst_ctime); - oh->file_size = SWAP32(oh->file_size); // Aiee. An int... signed, at that! + oh->file_size_low = SWAP32(oh->file_size_low); // Aiee. An int... signed, at that! + oh->file_size_high = SWAP32(oh->file_size_high); // Aiee. An int... signed, at that! oh->equiv_id = SWAP32(oh->equiv_id); // alias - char array. oh->yst_rdev = SWAP32(oh->yst_rdev); @@ -300,7 +301,8 @@ static int write_object_header(int id, enum yaffs_obj_type t, struct stat *s, in if(t == YAFFS_OBJECT_TYPE_FILE) { - oh->file_size = s->st_size; + oh->file_size_low = s->st_size; + oh->file_size_high = (s->st_size >> 32); } if(t == YAFFS_OBJECT_TYPE_HARDLINK)