GNU bug report logs - #18406
O_NOATIME patch

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: grep; Severity: wishlist; Reported by: starlight.2014q3@HIDDEN; Keywords: patch; dated Thu, 4 Sep 2014 21:39:01 UTC; Maintainer for grep is bug-grep@HIDDEN.

Message received at 18406 <at> debbugs.gnu.org:


Received: (at 18406) by debbugs.gnu.org; 11 Sep 2014 22:15:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 11 18:15:52 2014
Received: from localhost ([127.0.0.1]:38574 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XSCee-000836-Gf
	for submit <at> debbugs.gnu.org; Thu, 11 Sep 2014 18:15:52 -0400
Received: from mx.binnacle.cx ([74.95.187.105]:50479)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <starlight.2014q3@HIDDEN>) id 1XSCeb-00082w-Ci
 for 18406 <at> debbugs.gnu.org; Thu, 11 Sep 2014 18:15:50 -0400
Received: from CIANNAIT.binnacle.cx (ciannait [172.29.87.10])
 by mx.binnacle.cx (envelope-from <starlight.2014q3@HIDDEN>)
 (8.14.9/8.14.9) with ESMTP id s8BMFlRh021905
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
 Thu, 11 Sep 2014 18:15:47 -0400
Message-Id: <6.2.5.6.2.20140911180420.082343b0@HIDDEN>
Date: Thu, 11 Sep 2014 18:08:38 -0400
To: Paul Eggert <eggert@HIDDEN>, Blake <eblake@HIDDEN>,
 18406 <at> debbugs.gnu.org
From: starlight.2014q3@HIDDEN
Subject: Re: bug#18406: O_NOATIME patch
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Spam-Score: -1 () ALL_TRUSTED
X-Scanned-By: MIMEDefang 2.75 on 172.29.87.18
Received-SPF: pass (mx.binnacle.cx: 172.29.87.10 is whitelisted by SPF-milter
 whitelist entry)
X-Spam-Score: -4.8 (----)
X-Debbugs-Envelope-To: 18406
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.8 (----)

Another argument in favor of adding O_NOATIME
support to a limited set of utilities (just
'grep' IMO) is that recent 'ext4' file system
behavior defaults to a mode where ATIME is
updated only once relative to a given MTIME.

For O_NOATIME to be of use, one must care
enough about ATIME to add 'strictatime' to
the mount options in /etc/fstab.

I find this matters to me only in the context
of code development where seeing what has
been recently viewed or compiled (mainly
by me) is of interest.  It's ok if ATIME
is nuked wholesale on occasion since the
usefulness of the value is short.





Information forwarded to bug-grep@HIDDEN:
bug#18406; Package grep. Full text available.

Message received at 18406 <at> debbugs.gnu.org:


Received: (at 18406) by debbugs.gnu.org; 11 Sep 2014 21:52:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 11 17:52:31 2014
Received: from localhost ([127.0.0.1]:38568 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XSCI2-0007Qh-UE
	for submit <at> debbugs.gnu.org; Thu, 11 Sep 2014 17:52:31 -0400
Received: from mx.binnacle.cx ([74.95.187.105]:50466)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <starlight.2014q3@HIDDEN>) id 1XSCI0-0007QU-9X
 for 18406 <at> debbugs.gnu.org; Thu, 11 Sep 2014 17:52:29 -0400
Received: from CIANNAIT.binnacle.cx (ciannait [172.29.87.10])
 by mx.binnacle.cx (envelope-from <starlight.2014q3@HIDDEN>)
 (8.14.9/8.14.9) with ESMTP id s8BLqJwI021775
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
 Thu, 11 Sep 2014 17:52:19 -0400
Message-Id: <6.2.5.6.2.20140911173356.0823c140@HIDDEN>
Date: Thu, 11 Sep 2014 17:43:52 -0400
To: Paul Eggert <eggert@HIDDEN>, Blake <eblake@HIDDEN>,
 18406 <at> debbugs.gnu.org
From: starlight.2014q3@HIDDEN
Subject: Re: bug#18406: O_NOATIME patch
In-Reply-To: <54120282.3080304@HIDDEN>
References: <6.2.5.6.2.20140904163056.072b70f0@HIDDEN>
 <54120282.3080304@HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Spam-Score: -1 () ALL_TRUSTED
X-Scanned-By: MIMEDefang 2.75 on 172.29.87.18
Received-SPF: pass (mx.binnacle.cx: 172.29.87.10 is whitelisted by SPF-milter
 whitelist entry)
X-Spam-Score: -4.8 (----)
X-Debbugs-Envelope-To: 18406
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.8 (----)

At 13:13 9/11/2014 -0700, Paul Eggert wrote:
>> If the patch is of interest I'm willing
>> to improve it by having the feature
>> present conditionally on the appearance of
>>     HAVE_WORKING_O_NOATIME
>> in 'config.h'.
>
>Thanks, but there's no need for that; just
>have 'grep' complain if the option is used
>and O_NOATIME == 0.

Sure, that is a better approach.

>I'm of two minds about this suggestion.  On
>the one hand we don't want to add an option
>like this to every utility that reads
>files. On the other hand grep is used soooo
>often that it may be justifiable.  What do
>other people think?

I don't feel a compulsion to utilize
O_NOATIME all over the place--it really
seems like a specific use case to me which
is where one cares about and refers to
ATIME with something like 'ls -otru'
and one frequently runs
  find * -type f -print | xargs egrep somestring
while trying to find code fragments.

For years it has annoyed me that the 'find/grep'
nukes ATIME values for the entire tree
one is working on.

>If we add it, it should not have a
>single-letter option, though, and the long
>option should be called "--atime-preserve"
>for compatibility with tar,

I specifically chose to not use the 'tar'
option because it has two variants:
a) =replace and b) =system in order to
avoid semantic confusion.  The 'tar'
default is --atime-preserve=restore
which nukes CTIME values and is evil
in my opinion.  But I don't feel
strongly about the naming choice here.

However I do feel strongly that a short
option should be defined.  If one embraces
the feature it would be typed often.

>and the patch
>should also use FTS_NOATIME to avoid updating
>atime on directories with grep -r, and it
>should be documented properly in grep.texi
>and in 'grep --help' output and in NEWS (plus
>maybe write a test case or two....).

I can do the above if a decision is taken 
to adopt the feature.





Information forwarded to bug-grep@HIDDEN:
bug#18406; Package grep. Full text available.

Message received at 18406 <at> debbugs.gnu.org:


Received: (at 18406) by debbugs.gnu.org; 11 Sep 2014 20:50:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 11 16:50:24 2014
Received: from localhost ([127.0.0.1]:38530 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XSBJw-0003KY-6p
	for submit <at> debbugs.gnu.org; Thu, 11 Sep 2014 16:50:24 -0400
Received: from mx1.redhat.com ([209.132.183.28]:62712)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eblake@HIDDEN>) id 1XSBJs-0003KO-NV
 for 18406 <at> debbugs.gnu.org; Thu, 11 Sep 2014 16:50:22 -0400
Received: from int-mx10.intmail.prod.int.phx2.redhat.com
 (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23])
 by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s8BKoBsW017027
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL);
 Thu, 11 Sep 2014 16:50:11 -0400
Received: from [10.3.113.7] ([10.3.113.7])
 by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id
 s8BKoAVu010952; Thu, 11 Sep 2014 16:50:11 -0400
Message-ID: <54120B02.3030407@HIDDEN>
Date: Thu, 11 Sep 2014 14:50:10 -0600
From: Eric Blake <eblake@HIDDEN>
Organization: Red Hat, Inc.
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:24.0) Gecko/20100101 Thunderbird/24.7.0
MIME-Version: 1.0
To: Paul Eggert <eggert@HIDDEN>, starlight.2014q3@HIDDEN,
 18406 <at> debbugs.gnu.org
Subject: Re: bug#18406: O_NOATIME patch
References: <6.2.5.6.2.20140904163056.072b70f0@HIDDEN>
 <54120282.3080304@HIDDEN>
In-Reply-To: <54120282.3080304@HIDDEN>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature";
 boundary="UdG7P7cNa9vpO3wOmS4SMMqhFTFKRwPiK"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23
X-Spam-Score: -7.5 (-------)
X-Debbugs-Envelope-To: 18406
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -7.5 (-------)

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--UdG7P7cNa9vpO3wOmS4SMMqhFTFKRwPiK
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 09/11/2014 02:13 PM, Paul Eggert wrote:
>> If the patch is of interest I'm willing
>> to improve it by having the feature
>> present conditionally on the appearance of
>>     HAVE_WORKING_O_NOATIME
>> in 'config.h'.
>=20
> Thanks, but there's no need for that; just have 'grep' complain if the
> option is used and O_NOATIME =3D=3D 0.
>=20
> I'm of two minds about this suggestion.  On the one hand we don't want
> to add an option like this to every utility that reads files. On the
> other hand grep is used soooo often that it may be justifiable.  What d=
o
> other people think?
>=20
> If we add it, it should not have a single-letter option, though, and th=
e
> long option should be called "--atime-preserve" for compatibility with
> tar, and the patch should also use FTS_NOATIME to avoid updating atime
> on directories with grep -r, and it should be documented properly in
> grep.texi and in 'grep --help' output and in NEWS (plus maybe write a
> test case or two....).

Lots of work, but I like the idea.  In fact, I proposed a similar idea
for coreutils' du several years ago, and the only reason I haven't
actually submitted a patch is _because_ it is a lot of this detail work.

--=20
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--UdG7P7cNa9vpO3wOmS4SMMqhFTFKRwPiK
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg

iQEcBAEBCAAGBQJUEgsCAAoJEKeha0olJ0Nqh3sH/06q63KM4jmfgI6LA8hrnR12
m/sT/ZPEEQwcAcBTxbtg5m25q4TsztBLCprqOr6LFeUhfjrzLwAmEB7jFG6lC+Kb
q1mhVc8PZB6Ge89s1UnSDsQ3a6EtXdLVbIVK/GrlAcxr58RF90e86R6J8JysDw+2
Z0Y60ii+19T4y/iMIa+W38spm9vK3QqvdQFZC5u3Z+4tC0eM4EWx6HejtpniC53c
ZBorS5c11piUSOF4zH1ru47MPLcPYw6UlSZ69vXZianhoi5LAwJL7Jh+Grr/k2J9
6EXBzvBPNLPwQhIE3gWS6qVydSi/qq0/QPFy/oWoBUiYvjEvfKlonKtiAvQ2Hcg=
=eQ5I
-----END PGP SIGNATURE-----

--UdG7P7cNa9vpO3wOmS4SMMqhFTFKRwPiK--




Information forwarded to bug-grep@HIDDEN:
bug#18406; Package grep. Full text available.

Message received at 18406 <at> debbugs.gnu.org:


Received: (at 18406) by debbugs.gnu.org; 11 Sep 2014 20:14:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 11 16:14:07 2014
Received: from localhost ([127.0.0.1]:38501 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XSAkp-00016P-1x
	for submit <at> debbugs.gnu.org; Thu, 11 Sep 2014 16:14:07 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:56983)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eggert@HIDDEN>) id 1XSAkm-00016G-Ah
 for 18406 <at> debbugs.gnu.org; Thu, 11 Sep 2014 16:14:05 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
 by smtp.cs.ucla.edu (Postfix) with ESMTP id C5C64A6001B;
 Thu, 11 Sep 2014 13:14:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
 by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id FHgLqtTyxtaB; Thu, 11 Sep 2014 13:13:55 -0700 (PDT)
Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200])
 by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 1B776A6001E;
 Thu, 11 Sep 2014 13:13:55 -0700 (PDT)
Message-ID: <54120282.3080304@HIDDEN>
Date: Thu, 11 Sep 2014 13:13:54 -0700
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:31.0) Gecko/20100101 Thunderbird/31.1.0
MIME-Version: 1.0
To: starlight.2014q3@HIDDEN, 18406 <at> debbugs.gnu.org
Subject: Re: bug#18406: O_NOATIME patch
References: <6.2.5.6.2.20140904163056.072b70f0@HIDDEN>
In-Reply-To: <6.2.5.6.2.20140904163056.072b70f0@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -4.8 (----)
X-Debbugs-Envelope-To: 18406
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.8 (----)

> If the patch is of interest I'm willing
> to improve it by having the feature
> present conditionally on the appearance of
>     HAVE_WORKING_O_NOATIME
> in 'config.h'.

Thanks, but there's no need for that; just have 'grep' complain if the 
option is used and O_NOATIME == 0.

I'm of two minds about this suggestion.  On the one hand we don't want 
to add an option like this to every utility that reads files. On the 
other hand grep is used soooo often that it may be justifiable.  What do 
other people think?

If we add it, it should not have a single-letter option, though, and the 
long option should be called "--atime-preserve" for compatibility with 
tar, and the patch should also use FTS_NOATIME to avoid updating atime 
on directories with grep -r, and it should be documented properly in 
grep.texi and in 'grep --help' output and in NEWS (plus maybe write a 
test case or two....).




Information forwarded to bug-grep@HIDDEN:
bug#18406; Package grep. Full text available.
Added tag(s) patch. Request was from Paul Eggert <eggert@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Paul Eggert <eggert@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 4 Sep 2014 21:38:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 04 17:38:05 2014
Received: from localhost ([127.0.0.1]:59089 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XPejF-0004rY-0t
	for submit <at> debbugs.gnu.org; Thu, 04 Sep 2014 17:38:05 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33559)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <starlight.2014q3@HIDDEN>) id 1XPeHY-0004B7-VD
 for submit <at> debbugs.gnu.org; Thu, 04 Sep 2014 17:09:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <starlight.2014q3@HIDDEN>) id 1XPeHS-00026F-W5
 for submit <at> debbugs.gnu.org; Thu, 04 Sep 2014 17:09:23 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:45918)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <starlight.2014q3@HIDDEN>) id 1XPeHS-000262-Sw
 for submit <at> debbugs.gnu.org; Thu, 04 Sep 2014 17:09:22 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35280)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <starlight.2014q3@HIDDEN>) id 1XPeHS-000196-1C
 for bug-grep@HIDDEN; Thu, 04 Sep 2014 17:09:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <starlight.2014q3@HIDDEN>) id 1XPeHR-00022p-9S
 for bug-grep@HIDDEN; Thu, 04 Sep 2014 17:09:21 -0400
Received: from mx.binnacle.cx ([2001:470:885c:87::18]:45964)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <starlight.2014q3@HIDDEN>) id 1XPeHR-00020e-3V
 for bug-grep@HIDDEN; Thu, 04 Sep 2014 17:09:21 -0400
Received: from CIANNAIT.binnacle.cx (ciannait [172.29.87.10])
 by mx.binnacle.cx (envelope-from <starlight.2014q3@HIDDEN>)
 (8.14.9/8.14.9) with ESMTP id s84KkS0u011648
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
 for <bug-grep@HIDDEN>; Thu, 4 Sep 2014 16:46:29 -0400
Message-Id: <6.2.5.6.2.20140904163056.072b70f0@HIDDEN>
Date: Thu, 04 Sep 2014 16:46:27 -0400
To: bug-grep@HIDDEN
From: starlight.2014q3@HIDDEN
Subject: O_NOATIME patch
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="=====================_1027590036==_"
X-Scanned-By: MIMEDefang 2.75 on 172.29.87.18
Received-SPF: pass (mx.binnacle.cx: 172.29.87.10 is whitelisted by SPF-milter
 whitelist entry)
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 04 Sep 2014 17:38:03 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)

--=====================_1027590036==_
Content-Type: text/plain; charset="us-ascii"

Wrote a quick (but clean) patch
to have O_NOATIME applied on file opens.
I find this handy for bulk find/grep when
I'd prefer not to update atime.

If the patch is of interest I'm willing
to improve it by having the feature
present conditionally on the appearance of
   HAVE_WORKING_O_NOATIME
in 'config.h'.

Perhaps my choice of -N  or
--no-atime are not agreeable to
all.  Possibly the option does
not belong under "miscellaneous."
Easy to change.
--=====================_1027590036==_
Content-Type: application/octet-stream; name="grep-noatime.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="grep-noatime.patch"

LS0tIHNyYy9ncmVwLmMuYXIJMjAxNC0wNS0zMSAxMDozNTozNC4wMDAwMDAw
MDAgLTA0MDAKKysrIHNyYy9ncmVwLmMJMjAxNC0wOS0wNCAxMzo1Nzo1NC44
MTE2MDI0MTQgLTA0MDAKQEAgLTI3NCw3ICsyNzQsNyBAQAogc3RhdGljIHN0
cnVjdCBleGNsdWRlICpleGNsdWRlZF9kaXJlY3RvcnlfcGF0dGVybnM7CiAv
KiBTaG9ydCBvcHRpb25zLiAgKi8KIHN0YXRpYyBjaGFyIGNvbnN0IHNob3J0
X29wdGlvbnNbXSA9Ci0iMDEyMzQ1Njc4OUE6QjpDOkQ6RUZHSElQVFVWWDph
YmNkOmU6ZjpoaUxsbTpub3FScnN1dnd4eVp6IjsKKyIwMTIzNDU2Nzg5QTpC
OkM6RDpFRkdISU5QVFVWWDphYmNkOmU6ZjpoaUxsbTpub3FScnN1dnd4eVp6
IjsKIAogLyogTm9uLWJvb2xlYW4gbG9uZyBvcHRpb25zIHRoYXQgaGF2ZSBu
byBjb3JyZXNwb25kaW5nIHNob3J0IGVxdWl2YWxlbnRzLiAgKi8KIGVudW0K
QEAgLTM0Myw2ICszNDMsOCBAQAogICB7InZlcnNpb24iLCBub19hcmd1bWVu
dCwgTlVMTCwgJ1YnfSwKICAgeyJ3aXRoLWZpbGVuYW1lIiwgbm9fYXJndW1l
bnQsIE5VTEwsICdIJ30sCiAgIHsid29yZC1yZWdleHAiLCBub19hcmd1bWVu
dCwgTlVMTCwgJ3cnfSwKKworICB7Im5vLWF0aW1lIiwgbm9fYXJndW1lbnQs
IE5VTEwsICdOJ30sCiAgIHswLCAwLCAwLCAwfQogfTsKIApAQCAtMTM0OSwx
MCArMTM1MSwxNyBAQAogICByZXR1cm4gZ3JlcGZpbGUgKGRpcmRlc2MsIGVu
dC0+ZnRzX2FjY3BhdGgsIGZvbGxvdywgY29tbWFuZF9saW5lKTsKIH0KIAor
c3RhdGljIGludCBub19hdGltZTsKKwogc3RhdGljIGludAogZ3JlcGZpbGUg
KGludCBkaXJkZXNjLCBjaGFyIGNvbnN0ICpuYW1lLCBpbnQgZm9sbG93LCBp
bnQgY29tbWFuZF9saW5lKQogewotICBpbnQgZGVzYyA9IG9wZW5hdF9zYWZl
ciAoZGlyZGVzYywgbmFtZSwgT19SRE9OTFkgfCAoZm9sbG93ID8gMCA6IE9f
Tk9GT0xMT1cpKTsKKyAgaW50IGRlc2MgPSBvcGVuYXRfc2FmZXIgKGRpcmRl
c2MsCisgICAgICAgICAgICAgICAgICAgICAgICAgICBuYW1lLAorICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICBPX1JET05MWQorICAgICAgICAgICAg
ICAgICAgICAgICAgICAgfCAoZm9sbG93ID8gMCA6IE9fTk9GT0xMT1cpCisg
ICAgICAgICAgICAgICAgICAgICAgICAgICB8IChub19hdGltZSA/IE9fTk9B
VElNRSA6IDApCisgICAgICAgICAgICAgICAgICAgICAgICAgICk7CiAgIGlm
IChkZXNjIDwgMCkKICAgICB7CiAgICAgICBpZiAoZm9sbG93IHx8IChlcnJu
byAhPSBFTE9PUCAmJiBlcnJubyAhPSBFTUxJTkspKQpAQCAtMTU1Myw2ICsx
NTYyLDcgQEAKICAgLXMsIC0tbm8tbWVzc2FnZXMgICAgICAgICBzdXBwcmVz
cyBlcnJvciBtZXNzYWdlc1xuXAogICAtdiwgLS1pbnZlcnQtbWF0Y2ggICAg
ICAgIHNlbGVjdCBub24tbWF0Y2hpbmcgbGluZXNcblwKICAgLVYsIC0tdmVy
c2lvbiAgICAgICAgICAgICBkaXNwbGF5IHZlcnNpb24gaW5mb3JtYXRpb24g
YW5kIGV4aXRcblwKKyAgLU4sIC0tbm8tYXRpbWUgICAgICAgICAgICBvcGVu
IGZpbGVzIHdpdGggT19OT0FUSU1FXG5cCiAgICAgICAtLWhlbHAgICAgICAg
ICAgICAgICAgZGlzcGxheSB0aGlzIGhlbHAgdGV4dCBhbmQgZXhpdFxuIikp
OwogICAgICAgcHJpbnRmIChfKCJcCiBcblwKQEAgLTIwNTEsNiArMjA2MSwx
MCBAQAogICAgICAgICBzaG93X3ZlcnNpb24gPSAxOwogICAgICAgICBicmVh
azsKIAorICAgICAgY2FzZSAnTic6CisgICAgICAgIG5vX2F0aW1lID0gMTsK
KyAgICAgICAgYnJlYWs7CisKICAgICAgIGNhc2UgJ2EnOgogICAgICAgICBi
aW5hcnlfZmlsZXMgPSBURVhUX0JJTkFSWV9GSUxFUzsKICAgICAgICAgYnJl
YWs7Cg==

--=====================_1027590036==_--





Acknowledgement sent to starlight.2014q3@HIDDEN:
New bug report received and forwarded. Copy sent to bug-grep@HIDDEN. Full text available.
Report forwarded to bug-grep@HIDDEN:
bug#18406; Package grep. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.