All of lore.kernel.org
 help / color / mirror / Atom feed
From: Theodore Ts'o <tytso@mit.edu>
To: The Ghost <the-ghost@inbox.ru>
Cc: linux-ext4@vger.kernel.org
Subject: Re: Does ext4 write anything during reading with relatime?
Date: Mon, 7 Dec 2015 18:19:13 -0500	[thread overview]
Message-ID: <20151207231913.GA3094@thunk.org> (raw)
In-Reply-To: <5665FD3D.1050603@inbox.ru>

On Tue, Dec 08, 2015 at 12:42:21AM +0300, The Ghost wrote:
> 
> I just tried again. With relatime or noatime, the second drive spins up.
> Always. With read-only, it never spins up. And that doesn't make sense...

The superblock *does* get modified at mount time to update the last
mount time and the mount count in the superblock.  But I've tested
using blktrace, and that's the only write I see after copying in a set
of test files, reading them (so that atime > mtime), and then
umounting the file system.  I then started the blktrace, mounted the
file system, and read all of the files using "tar cvzf /tmp/foo.tar.gz /mnt".

Cheers,

						- Ted

  reply	other threads:[~2015-12-07 23:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-05 11:03 Does ext4 write anything during reading with relatime? The Ghost
2015-12-06 21:14 ` Theodore Ts'o
2015-12-07 21:42   ` The Ghost
2015-12-07 23:19     ` Theodore Ts'o [this message]
2015-12-08  0:44       ` The Ghost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151207231913.GA3094@thunk.org \
    --to=tytso@mit.edu \
    --cc=linux-ext4@vger.kernel.org \
    --cc=the-ghost@inbox.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.