diff options
author | Theodore Ts'o <tytso@mit.edu> | 2005-04-14 14:07:53 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2005-04-14 14:07:53 -0400 |
commit | 1f3ad14a5ad5df3ac4012d41ef5d76411cd8fff3 (patch) | |
tree | 396a5352e6ba7d2250cf84eaa71de1a5fb331f54 /e2fsck/pass2.c | |
parent | 09a51b3de3ef2663b3deae4d6509278e96d8c7e9 (diff) | |
download | e2fsprogs-1f3ad14a5ad5df3ac4012d41ef5d76411cd8fff3.tar.gz |
Use a centrally stored current time for "now" which
can be overridden using the E2FSCK_TIME environment
variable, for better reproducibility for regression tests.
Diffstat (limited to 'e2fsck/pass2.c')
-rw-r--r-- | e2fsck/pass2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/e2fsck/pass2.c b/e2fsck/pass2.c index 69599fff..52fdcbaf 100644 --- a/e2fsck/pass2.c +++ b/e2fsck/pass2.c @@ -1097,7 +1097,7 @@ static void deallocate_inode(e2fsck_t ctx, ext2_ino_t ino, char* block_buf) ext2fs_icount_store(ctx->inode_link_info, ino, 0); e2fsck_read_inode(ctx, ino, &inode, "deallocate_inode"); inode.i_links_count = 0; - inode.i_dtime = time(0); + inode.i_dtime = ctx->now; e2fsck_write_inode(ctx, ino, &inode, "deallocate_inode"); clear_problem_context(&pctx); pctx.ino = ino; |