[lkml]   [2012]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: ext4 bug? last write time precedes last mount time on a writable volume!
Thanks for responding Ted.

That would all make sense, if it weren't for the last write time on
the Ubuntu box being earlier than the last mount time, when clearly
the superblock *must* have got modified. Clearly that isn't what
Ubuntu is doing with it. But I guess, given that Ubuntu is different
from OpenSuse and Fedora in this regard, perhaps that's just something
Canonical have changed, intentionally or otherwise.

Andi Kleen was right then, when he offered much the same explanation
to me last week on the list.

> Is there a reason why you particularly care about s_wtime being updated?

Yes and no ;)

It was interesting to me when it seemed like it might be a way to find
the time of the last write to the file system, bugs notwithstanding. A
few public domain info sources suggest this is what it is. I could
have made good use of that in some work I'm doing. But if its not
meant to do that, which certainly makes sense from a performance
perspective, then no.

On 2 March 2012 20:45, Ted Ts'o <> wrote:

> It shows the last time the superblock has been modified, and one of
> the things that we've been doing lately has been to optimize ext4 so
> that it writes to the superblock *much* less often.  It was a
> performance bottleneck to be constantly updating the number of free
> blocks in the superblock each time we write to a new block, for
> example --- or update the superblock to update the number of free
> inodes each time we allocate a new inode.
> Is there a reason why you particularly care about s_wtime being
> updated?
>                                        - Ted
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2012-03-02 22:37    [W:0.041 / U:1.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site