aboutsummaryrefslogtreecommitdiff
path: root/lib/fstree
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-24 12:35:35 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-24 13:46:05 +0200
commit30fbd496a1793b4374873144432f9b7a996a689d (patch)
tree3112554b3c51501ca78b417569003b9f5a065fa0 /lib/fstree
parent802b43c95ab4d6e44e17d6b81931e0963182c262 (diff)
cleanup: remove atime/ctime processing code
This commit removes all the code for parsing and processing atime/ctime and values and related test code. Caring about those is kind of pointless because squashfs can only store mtime in inodes. The only relevant place is when generating a struct stat from a squashfs inode or an fstree node. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/fstree')
-rw-r--r--lib/fstree/fstree.c2
-rw-r--r--lib/fstree/fstree_from_file.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/lib/fstree/fstree.c b/lib/fstree/fstree.c
index 11a1dd1..1bbb678 100644
--- a/lib/fstree/fstree.c
+++ b/lib/fstree/fstree.c
@@ -69,8 +69,6 @@ static int process_defaults(struct stat *sb, char *subopts)
if (lval > 0xFFFFFFFFL)
goto fail_ov;
sb->st_mtime = lval;
- sb->st_atime = lval;
- sb->st_ctime = lval;
break;
default:
fprintf(stderr, "Unknown option '%s'\n", value);
diff --git a/lib/fstree/fstree_from_file.c b/lib/fstree/fstree_from_file.c
index 74d79ae..46926ee 100644
--- a/lib/fstree/fstree_from_file.c
+++ b/lib/fstree/fstree_from_file.c
@@ -125,8 +125,6 @@ static int handle_line(fstree_t *fs, const char *filename,
memset(&sb, 0, sizeof(sb));
sb.st_mtime = fs->defaults.st_mtime;
- sb.st_atime = fs->defaults.st_atime;
- sb.st_ctime = fs->defaults.st_ctime;
/* isolate keyword */
for (i = 0; isalpha(line[i]); ++i)