aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2022-03-18 05:25:36 +0000
committerDavid Anderson <dvander@google.com>2022-03-23 12:20:29 -0700
commit59fe8bb5df743ad4bae13b364dcfc009641dc5fa (patch)
tree91ab5512d3fe290c61df50ac2cdb5ac5db15ce34 /include
parentd89215b66a420aa2e60b0d4a4d300cfc3ff5815d (diff)
downloaderofs-utils-59fe8bb5df743ad4bae13b364dcfc009641dc5fa.tar.gz
erofs-utils: mkfs: use extended inodes when ctime is set
Currently mtime is effectively ignored because most inodes are compact. If mtime was set, and it's different from the build time, then extended inodes should be used instead. To guarantee that timestamps do not cause extended inodes, a fixed timestamp should be used (-T). Additionally, a new --ignore-mtime option has been added to preserve the old behavior. Link: https://lore.kernel.org/r/20220318052536.1358747-1-dvander@google.com Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com> Signed-off-by: David Anderson <dvander@google.com> Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com> Change-Id: I47373995abda0d223c34af176c0e82233dbdf90f
Diffstat (limited to 'include')
-rw-r--r--include/erofs/config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/erofs/config.h b/include/erofs/config.h
index cb064b6..0a1b18b 100644
--- a/include/erofs/config.h
+++ b/include/erofs/config.h
@@ -43,6 +43,7 @@ struct erofs_configure {
char c_timeinherit;
char c_chunkbits;
bool c_noinline_data;
+ bool c_ignore_mtime;
#ifdef HAVE_LIBSELINUX
struct selabel_handle *sehnd;