summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEtienne Brateau <etienne.brateau@gmail.com>2022-01-23 05:17:08 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-23 12:06:17 +0100
commit3a0e75ac2979897be3d34edd4aa4e520e703ca87 (patch)
treefdbe3b0ad7ae5c7058b8f967cf1199d8150f32bd
parent59a80db1a4cc976642633a4a04d339bf17ae3d13 (diff)
ext2fs: set the writing time in the superblock
Message-Id: <20220123041715.19402-10-etienne.brateau@gmail.com>
-rw-r--r--ext2fs/hyper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext2fs/hyper.c b/ext2fs/hyper.c
index 04da86a7..627b1ac6 100644
--- a/ext2fs/hyper.c
+++ b/ext2fs/hyper.c
@@ -199,6 +199,8 @@ diskfs_set_hypermetadata (int wait, int clean)
if (sblock_dirty)
{
+ /* Before writing, set the time of write */
+ sblock->s_wtime = htole32 (diskfs_mtime->seconds);
sblock_dirty = 0;
memcpy (mapped_sblock, sblock, SBLOCK_SIZE);
disk_cache_block_ref_ptr (mapped_sblock);