From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:52283 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729699AbeGaVU7 (ORCPT ); Tue, 31 Jul 2018 17:20:59 -0400 Date: Tue, 31 Jul 2018 21:39:05 +0200 From: Pavel Machek To: David Howells Cc: 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] Message-ID: <20180731193905.GA28700@amd> References: <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> <4951.1533042037@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline In-Reply-To: <4951.1533042037@warthog.procyon.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: --/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue 2018-07-31 14:00:37, David Howells wrote: > Pavel Machek wrote: >=20 > > 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. >=20 > 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. Yes, that would work. Except for strings that can contain 's, for example filenames. \0 could be used to terminate arbitrary strings.. AFAICT this goes over file descriptors, so length is available, and we could use \0 to terminate strings. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --/04w6evG8XlLl3ft Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAltgutgACgkQMOfwapXb+vIcQQCghSIJbE0vhoOHn0oKsG0JcaQ4 5GkAn3cX3Umd/qo7HZat0BsJNWEVvIQz =6RYh -----END PGP SIGNATURE----- --/04w6evG8XlLl3ft--