Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5123016imm; Tue, 31 Jul 2018 06:01:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpft+UqSMLhf/QGd/hW3FRFbSoyl6Nya4M1+aFaxi1uCXzg648Q6ce7qqRacwke2RFi7NvdS X-Received: by 2002:a62:9f1d:: with SMTP id g29-v6mr21745297pfe.207.1533042111629; Tue, 31 Jul 2018 06:01:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533042111; cv=none; d=google.com; s=arc-20160816; b=LA+41RpDvxLNvljKxtPSWVqj/nzsRBGem0fBDevZQcmoCc7WR4yRZhgKP9nCev65W+ vOvhvyqSYbgfIhCNuwbnDF0vROE5Up2wyQO8TCgRg1KQlKtdS3+OykozdCm9HsNc/MKf WXZpSZDxmgc4L0gB+S1Vpf0NItisKu90T/FfZIH2Caao2i1qoUFMZWwlcxKk+WF6LNoK B0NOj+P59wxPqUR0NF3QQI9mpLXLAuxLNwLSNB0nX6tqQClTgupkCWBf81YEUAWtceN4 BlwfM6UK0+pojL7ZWXTi3nybygsoaziZhuXkM121hQRfXGtxuUwwo/Nj3Ua309xD3Agj m6Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization :arc-authentication-results; bh=64NzBa3AVgP5orBY48o4h82iRw0wpY1NLqmHevBVyM8=; b=N8LvADhXdkP7k+jcaFCYA+Ieh7CwePJIAdOsLPNpLyuKyDuabUyWXX/r5OxrdPFiGs e9ssaP1vnvDRMvApHMpfaVskVkiCnolVmyNWfhK40OynuGgDqqUfmgZ7w/OHXdB7VvmP Qpn/iIPfl3ImlzjVBuOYQU6rP7lTYzJ89tXaU0bOACTM8Ee7Wd40A1RhFn4ieu67ks5J /6rNYF8nkEFEJTxdpiv9tW7szQHX6g9qVBsMtvFYlvxEgUWmm/xuWNLfUeuu8o+rHEij cZB8xH+zCozb7aXRPnTVlgoEANxIX0gqq6fPmUu2suNawgmiJHrOfiN6mFIEhEkIeRWG gvKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b22-v6si2817853pls.127.2018.07.31.06.01.36; Tue, 31 Jul 2018 06:01:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732305AbeGaOk4 (ORCPT + 99 others); Tue, 31 Jul 2018 10:40:56 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:55916 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732080AbeGaOkz (ORCPT ); Tue, 31 Jul 2018 10:40:55 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E0E8A4021700; Tue, 31 Jul 2018 13:00:41 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-116.rdu2.redhat.com [10.10.120.116]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6396E2142F20; Tue, 31 Jul 2018 13:00:38 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20180731122801.GA14972@amd> References: <20180731122801.GA14972@amd> <20180730183847.GB5544@bombadil.infradead.org> <20180730194938.GA12962@bombadil.infradead.org> <20180730210209.GY21725@thunk.org> <20180730235849.GA19692@bombadil.infradead.org> <20180731005802.GB21725@thunk.org> <18974.1533031913@warthog.procyon.org.uk> <20180731113422.GA22939@amd> <20180731120752.GA23378@bombadil.infradead.org> To: Pavel Machek Cc: dhowells@redhat.com, Matthew Wilcox , "Theodore Y. Ts'o" , Linus Torvalds , Al Viro , linux-fsdevel , Linux Kernel Mailing List Subject: Re: [PATCH 36/38] vfs: Add a sample program for the new mount API [ver #10] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4950.1533042037.1@warthog.procyon.org.uk> Date: Tue, 31 Jul 2018 14:00:37 +0100 Message-ID: <4951.1533042037@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 31 Jul 2018 13:00:41 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 31 Jul 2018 13:00:41 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pavel Machek wrote: > Regexes do not work in presence of arbitrary strings in the > message. If we had a way to tell start / end of string inserted in the > message, yes, the problem would be solved. You could use quotes around arbitrary insertions, ie. you always do '%s' inside the kernel if %s doesn't correspond to a specific set of text constants. David