Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4260145imm; Mon, 30 Jul 2018 11:17:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpewpxC3WB9wxyQINY8otxj3dah+ySQZoPFRAvoGtil+RgFwZcP4KWFC9nYhC+NUO8hY/XpO X-Received: by 2002:a17:902:7683:: with SMTP id m3-v6mr17130865pll.255.1532974668953; Mon, 30 Jul 2018 11:17:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532974668; cv=none; d=google.com; s=arc-20160816; b=AOaGr48Ir718PRMexDMKZzlJIGDk7VPWR3vtTQqRO41YURG9AfrsGBOv5NleD9OV/s ZOFIGO7bXu1CLsEaC5rr6Q2Pi9WpB7vJ49+uSxRNpENsadph/87YwznNuHgDaxwdKVQd xoOyR5DqPrgqMDdAHPIPQe3LzRjC5PPWS1nhKZUI9OYiyIrrTk7ksNFHdast/WaG92Gm PYhI2CLz+HXZ2r6cmaMX6iwWphtkgb3I7wE3Q8h5BnbACVVml+bHneQZ7FQA/XpP3Lhu 97tSsjRgdPDC44jr7e3/SJ4GlLEPjnotDjoRH8ceNUCcZ4UrVPe32nk/Np297MGLNgnp yuyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=ir7lAhWv9QajzcstSasYMFWwX6mCxiHC1gjBW93RHqI=; b=ILSxdH5SFCfmP4ooYki5LO03VK7VBEjVYJF73qd5uHE2YvE+rQSx1CG8CqcIDW44KG dlDwx80ThTvdhkNFMfufkE/LG6pMuKlpjkJ7rlhiD9moce8CksWt5V6xSf34GnW2t7w/ hQ8FFobKsN5onirQ8aut+unFcu0+Tnr3LeLp4IUzpTrGtPNqa3FAPBoQh43BkDsUdVr+ U/DW+JT23XRxDo8txUKTdh5ZmI4wcg6EQWFqfavTwJELYPiydJyiLWAMcwyvv2QJRp7Q OeRYHs6xWqPYpB/1sI5OfkEN31P46Oug/4qdbEpGyZ+PyK5/DToKaxKI+b87nR8uvdtR nnSA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v8-v6si10413262plo.322.2018.07.30.11.17.34; Mon, 30 Jul 2018 11:17:48 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731816AbeG3Twv (ORCPT + 99 others); Mon, 30 Jul 2018 15:52:51 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:41701 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726876AbeG3Twv (ORCPT ); Mon, 30 Jul 2018 15:52:51 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id B2F0880668; Mon, 30 Jul 2018 20:16:37 +0200 (CEST) Date: Mon, 30 Jul 2018 20:16:37 +0200 From: Pavel Machek To: Matthew Wilcox Cc: David Howells , viro@zeniv.linux.org.uk, torvalds@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 36/38] vfs: Add a sample program for the new mount API [ver #10] Message-ID: <20180730181637.GC2416@amd> References: <20180729113749.GA7333@amd> <153271267980.9458.7640156373438016898.stgit@warthog.procyon.org.uk> <153271292330.9458.14583488053811372222.stgit@warthog.procyon.org.uk> <25489.1532953411@warthog.procyon.org.uk> <20180730143104.GB24051@amd> <20180730180842.GA5544@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VywGB/WGlW4DM4P8" Content-Disposition: inline In-Reply-To: <20180730180842.GA5544@bombadil.infradead.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --VywGB/WGlW4DM4P8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon 2018-07-30 11:08:42, Matthew Wilcox wrote: > On Mon, Jul 30, 2018 at 04:31:04PM +0200, Pavel Machek wrote: > > Well, I guess errors should have numbers, and catalog explaining what > > error means what. That way userspace can translate, and it is what we > > do with errno. > >=20 > > I believe numbers are best. If you hate numbers, you can still use > > strings, as long as you can enumerate them in docs (but it will be > > strange design). >=20 > Have you looked at how gettext() works? It uses the english text as > a search string and replaces it with the localised string. This is > a very common design! Yes, and it needs ("foo %s %d", "bar", 3) as base. Not ("foo bar 3"). Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --VywGB/WGlW4DM4P8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAltfVgUACgkQMOfwapXb+vKc1gCglpZQ6AA69dqgXs7N2XB0Cvni iXsAoL6VQoDipLg3eHhaAWLH1Ywf1RXu =/g0O -----END PGP SIGNATURE----- --VywGB/WGlW4DM4P8--