summaryrefslogtreecommitdiff
path: root/ext4_utils/contents.h
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2010-08-04 15:06:09 -0700
committerColin Cross <ccross@android.com>2010-08-04 15:06:09 -0700
commitde61f980c7b034eefac6e0ace718b3c1eb3f6252 (patch)
tree85bb423c4951054de166a2dd9c6abdcd8c3616dc /ext4_utils/contents.h
parente4b5ae8ab07e698b95f004c9226000b02f853abc (diff)
downloadextras-de61f980c7b034eefac6e0ace718b3c1eb3f6252.tar.gz
Set timestamps on files based on source files
Use the modification time of the source files to set the modification time, access time, and creation times in the filesystem image. Change-Id: I720acba5ec435ceae92bb1653e3cc7545327b6ef
Diffstat (limited to 'ext4_utils/contents.h')
-rw-r--r--ext4_utils/contents.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext4_utils/contents.h b/ext4_utils/contents.h
index 0e2a3b7d..3aafb1ee 100644
--- a/ext4_utils/contents.h
+++ b/ext4_utils/contents.h
@@ -28,11 +28,12 @@ struct dentry {
u16 uid;
u16 gid;
u32 *inode;
+ u32 mtime;
};
u32 make_directory(u32 dir_inode_num, u32 entries, struct dentry *dentries,
u32 dirs);
u32 make_file(const char *filename, u64 len);
u32 make_link(const char *filename, const char *link);
-int inode_set_permissions(u32 inode_num, u16 mode, u16 uid, u16 gid);
+int inode_set_permissions(u32 inode_num, u16 mode, u16 uid, u16 gid, u32 mtime);
#endif