projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix copyright
[yaffs2.git]
/
utils
/
mkyaffs2image.c
diff --git
a/utils/mkyaffs2image.c
b/utils/mkyaffs2image.c
index 5292b667ae7f1639baef227529dce953ef051509..0df41585c3e58dc5525664f1e1b64f6d0c2e18fb 100644
(file)
--- a/
utils/mkyaffs2image.c
+++ b/
utils/mkyaffs2image.c
@@
-1,8
+1,7
@@
/*
* YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
/*
* YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
- * Copyright (C) 2002-2011 Aleph One Ltd.
- * for Toby Churchill Ltd and Brightstar Engineering
+ * Copyright (C) 2002-2018 Aleph One Ltd.
*
* Created by Charles Manning <charles@aleph1.co.uk>
* Nick Bane modifications flagged NCB
*
* Created by Charles Manning <charles@aleph1.co.uk>
* Nick Bane modifications flagged NCB
@@
-242,7
+241,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->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);
oh->equiv_id = SWAP32(oh->equiv_id);
// alias - char array.
oh->yst_rdev = SWAP32(oh->yst_rdev);
@@
-300,7
+300,8
@@
static int write_object_header(int id, enum yaffs_obj_type t, struct stat *s, in
if(t == YAFFS_OBJECT_TYPE_FILE)
{
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)
}
if(t == YAFFS_OBJECT_TYPE_HARDLINK)