Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4031634imm; Mon, 30 Jul 2018 07:34:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpergyp3C8htgQtB/Pe3CJBIjqh8sJ5YyZm/Sxzpw7l0OsTpeC31JlilO4uyR18/0C2jU44d X-Received: by 2002:a17:902:583:: with SMTP id f3-v6mr16759566plf.115.1532961251160; Mon, 30 Jul 2018 07:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532961251; cv=none; d=google.com; s=arc-20160816; b=KcLjXJI/3LU5yh6u9i0E4HzcOB4I78UisPCLBmopNEXmSkbzPE8HdaBH/khs2ED3uv SGI/OmaQn+tqnxkSDUN9au5drlzOwn/GUUPgByoPAeVo6x7jLVxLrfkiBrShiDKUiHQy oe9wbpTQj8XEIqFnMAYAkhjCvR5aIh7lLq7rktVn9Jn2PFZRg/0O+QShqZ83BegIpRGS 8AKWWMiupksR+bkk86lSEdNFGrlUfoOr+nRygBDtvwCuE9LLC7bYIH+Cc7hI9Rlk5lOE 5Jows+JXL1heMrKbx7iYbKvJTwBNcdEHZuqS7OfF5weBPClaa8N/I73NrGbHonUL8i/t tB9A== 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=x8oApNNtDJ7GlnjUFMpqkycQQHYv3+H31hd6qjPeCJE=; b=yosD9suo8oi6DQ3Krabqd6rfLUL94YaH7oM/3V70Nv6Q6JViJnSIGM2mUgz919ICye +fVG8vKMhz2fjy39C+8w2leVAFPfdy2Xl5G8vPHPN9VUOQ3VXWb044qHB5k718pTIIjE vAwPMNrRDZQ3CUKEehVHAABBu2lf78jTUBY7DM4pNeQorZAzO7OhIuSGvUITnPxqkTVJ GjTiku4vtgCIpNVovpgrxjTK5kgWI5FD0gm1VyzR1Q4lzWvoBe6p4Ic2wYZtlISzvWFw Dty9gLfNhW1EueIEfdVX+4uoToSuFTCLfFGpK1vXdslOsxjG1ZQ6VoRLnZFvYKGjJNq/ FikA== 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 16-v6si11148959pgr.325.2018.07.30.07.33.57; Mon, 30 Jul 2018 07:34:11 -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 S1731973AbeG3QGW (ORCPT + 99 others); Mon, 30 Jul 2018 12:06:22 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:35703 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726860AbeG3QGW (ORCPT ); Mon, 30 Jul 2018 12:06:22 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id C632A8063F; Mon, 30 Jul 2018 16:31:04 +0200 (CEST) Date: Mon, 30 Jul 2018 16:31:04 +0200 From: Pavel Machek To: David Howells Cc: 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: <20180730143104.GB24051@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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2B/JsCI69OhZNC5r" Content-Disposition: inline In-Reply-To: <25489.1532953411@warthog.procyon.org.uk> 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 --2B/JsCI69OhZNC5r Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon 2018-07-30 13:23:31, David Howells wrote: > Pavel Machek wrote: >=20 > > Hmm, so kernel now returns messages in english? Not sure that is > > reasonable, as that is going to cause problems with translations... >=20 > The problem is that if there's no explicit logging route attached, the > messages get dumped via printk() instead, so they really need to be print= able > strings. 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. 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). But anything else is not suitable, I'm afraid. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --2B/JsCI69OhZNC5r Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAltfIScACgkQMOfwapXb+vKg4ACfZaW20eGyJG54agyIfU1Cxd1z zb0AoJIeEfzVO7Pkz1IsbW1YF+9dX+A/ =Lt0B -----END PGP SIGNATURE----- --2B/JsCI69OhZNC5r--