diff options
author | Etienne Brateau <etienne.brateau@gmail.com> | 2022-01-23 05:17:08 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-01-23 12:06:17 +0100 |
commit | 3a0e75ac2979897be3d34edd4aa4e520e703ca87 (patch) | |
tree | fdbe3b0ad7ae5c7058b8f967cf1199d8150f32bd /ext2fs | |
parent | 59a80db1a4cc976642633a4a04d339bf17ae3d13 (diff) | |
download | hurd-3a0e75ac2979897be3d34edd4aa4e520e703ca87.tar.gz hurd-3a0e75ac2979897be3d34edd4aa4e520e703ca87.tar.bz2 hurd-3a0e75ac2979897be3d34edd4aa4e520e703ca87.zip |
ext2fs: set the writing time in the superblock
Message-Id: <20220123041715.19402-10-etienne.brateau@gmail.com>
Diffstat (limited to 'ext2fs')
-rw-r--r-- | ext2fs/hyper.c | 2 |
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); |