From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17382 invoked by alias); 5 Dec 2015 20:00:55 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 37320 Received: (qmail 23627 invoked from network); 5 Dec 2015 20:00:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=0Cve75r2oEM81t5actMsPr3eIZCbGDqLdDezT0WpHSI=; b=KOaQFuW4/tVuyn/900L1SH20ud7ma11KZrKTUYX0mft4KmxTPib8uu4iF/GaBe68NQ 8rZbXjRQx7hx1mhigEX5vaXgqR2bS+AHhx/3qfdjBJJv6D9nTvuNK9n302lyYd2oXRCZ 88xypcm79LsAXj0jOh5e66Bo6H//ho7+WepBhWuvFd4eTrWE9DHyA77rEZTfIEyu2R9S SFJEZveYhbcPnOj96RvjBERWcyQqvj2iq4rPKjx7ClaTIPtG64x+OvdUKCG8WftdkW1A qcueAjfkOr6QK/uK77G048BUkyeg6diTEnI7wW48DRct2GglMiWTTyz3W146bipe50qu Foag== MIME-Version: 1.0 X-Received: by 10.129.153.201 with SMTP id q192mr17861356ywg.205.1449345649404; Sat, 05 Dec 2015 12:00:49 -0800 (PST) In-Reply-To: <56632A3A.6000002@gmx.com> References: <566272DD.6010305@gmx.com> <56632A3A.6000002@gmx.com> Date: Sat, 5 Dec 2015 14:00:49 -0600 Message-ID: Subject: Re: [PATCH] portable mechanism to determine noatime From: Matthew Martin To: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 On Sat, Dec 5, 2015 at 12:17 PM, Eric Cook wrote: > On 12/05/2015 12:15 AM, Eric Cook wrote: >> On 12/04/2015 06:22 PM, Baptiste Daroussin wrote: >>> Hello, >>> >>> While updating the FreeBSD package to 5.2, I got a failure when >>> running the testsuite. Actually it was not a real failure are the said >>> test is known to not work on a noatime filesystem which is my case. >>> >>> The way to test for noatime rely on /etc/mtab which we do not have >>> >>> Here is a patch to use the mount command instead: >>> https://people.freebsd.org/~bapt/0001-Use-a-portable-mechanism-to-determine-if-the-filesys.patch >>> >>> Best regards, >>> Bapt >>> >> This patch doesn't work on illumos/solaris systems. >> > Well, it isn't just unique to illumos/solaris. > If you build zsh in a directory that is on your root partition (say you don't have a separate /home partition) > `df .' returns `/', `grep /' matches every mount point and if any mount point is mounted noatime, the final grep succeeds. > But that problem still exist with the use of /etc/mtab. What about mount | awk '$1 == "'"$(df . | tail -n 1 | cut -d\ -f1)"\" | grep -q noatime