Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Mar 2017 08:00:03 +1030
From:      "O'Connor, Daniel" <darius@dons.net.au>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        Rozhuk Ivan <rozhuk.im@gmail.com>, freebsd-hackers@freebsd.org
Subject:   Re: open(): O_EVTONLY and O_NOATIME
Message-ID:  <BD743D0C-0203-4D08-8B25-A73DEAEB4366@dons.net.au>
In-Reply-To: <20170309131136.GY30979@kib.kiev.ua>
References:  <20170309022554.18875d07@rimwks> <20170308235016.GT30979@kib.kiev.ua> <20170309031532.0079ab35@rimwks> <C49C6526-942A-44E0-9D21-BAA95C5DCDA2@dons.net.au> <20170309131136.GY30979@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

> On 9 Mar 2017, at 23:41, Konstantin Belousov <kostikbel@gmail.com> =
wrote:
>> This means that there is no way it could look at all the FDs which =
have this file open and see they are all noatime and then disable atime =
just for that one.
>=20
> Well, I never claimed that the 'look at all the FDs' is needed.  I =
stated
> that some plumbing to pass O_NOATIME flag from file down to VOPs is =
needed
> if this feature is implemented.

Sorry, I didn't mean to put words in your mouth. I was just trying to =
explain the concept as it seemed OP was having difficulty understanding =
and you and he seemed to be talking past each other.

>> You are right in that if an FS can be mounted noatime it should be =
able to work but unfortunately there is no plumbing between the open of =
the file and the file system that supports that.
>=20
> I fail to understand this statement.  How somebody's ability to edit =
/etc/fstab
> is related to potential unintended or malicious lack of metadata =
update due
> to the mis-use of the flags ?

That wasn't what I was trying to say.

OP said..
> If file system cant be mount with NOATIME - then it already ready to =
support O_NOATIME.

I took that to mean they thought that if an FS could be mounted noatime =
then it should be able to support O_NOATIME.

--
Daniel O'Connor
"The nice thing about standards is that there
are so many of them to choose from."
 -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BD743D0C-0203-4D08-8B25-A73DEAEB4366>