aboutsummaryrefslogtreecommitdiff
path: root/ext2fs/hyper.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext2fs/hyper.c')
-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);