bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 10/17] ext2fs: set the writing time in the superblock


From: Samuel Thibault
Subject: Re: [PATCH 10/17] ext2fs: set the writing time in the superblock
Date: Sun, 23 Jan 2022 12:06:24 +0100
User-agent: NeoMutt/20170609 (1.8.3)

Applied, thanks!

Etienne Brateau, le dim. 23 janv. 2022 05:17:08 +0100, a ecrit:
> ---
>  ext2fs/hyper.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/ext2fs/hyper.c b/ext2fs/hyper.c
> index 1bb74e53..65a2937e 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);
> -- 
> 2.34.1
> 
> 

-- 
Samuel
There are two types of Linux developers - those who can spell, and
those who can't. There is a constant pitched battle between the two.
(From one of the post-1.1.54 kernel update messages posted to c.o.l.a)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]