Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4571945imm; Mon, 30 Jul 2018 17:59:39 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc3P4EUaUbsBzDPnNqbEyNu8vtjUYZH9YqW8xkqziBcTaEee0WAsOaEL7lyl9Y7qM0E9wtL X-Received: by 2002:a62:2f84:: with SMTP id v126-v6mr20032803pfv.115.1532998779323; Mon, 30 Jul 2018 17:59:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532998779; cv=none; d=google.com; s=arc-20160816; b=kuDJ5bQWHt3TAAMU3+ORIixDWUwhXNhxQlZe1Rreh0cz11R5dMjgpuj3ocWgLsP4JW ux6Uc5Kvu1Sq5ObgMO5Fg9J4W541bfsaO9L2OMQ1+KOYePfQjx30lvhm0FE7QeSZCkhP ftepQk5Bu2/DTy+uTStfng7fQYJ9nB/283czK1/P1isxTnLyVIP39abU91IAvRjaL+lg uVxz3bqk+tWpM+pJqMpkHNeZBtpHVQ7FJJKygvRJ1kJM6megbsApeWlhQxFbX3yJ5faQ IZdOljy6xuAPxIyXGnGknkk4iir9O22L8kg6mFBYe6IMpttmY0KYxg8htdaaZyZ++Qu1 HPLA== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=Z3VtPvRTvnvNIXpZTQXay+fzLC/aOV8GnaEf6im2iIo=; b=zSu1Ca0f7NaiRpSs7rzGDFv1DBijHqamm6AuTfYj6hFZEMbK79/01x5vAmLLD3TZXf NPq/I9xwerBL1zxtRCulZcqp0hZrV5BFLyUhPBEThTs9h8KIdbDcgDo71l2Bn5m28PUX VrFQjJRjmudxRjwkb6JziXIKTjXL+fFUw91SEPfiAPDv0+Q6h6qPZl3LUCR7tjYwVdLK Dh8sGlNfTl2W1TAnx/PX/1Qgpn0yLrbUCcrznmD1Qhh2zO/3E79Pwmx9QaYBLIqu39ys A3OzPHZcGb57MdcjUtiDUHsDF+7BeJ2gVB6RkUg4pXMVS9L7fPMkBcrG6JwSKuKTVOs9 sYgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=KsnY2ARl; 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 q90-v6si12430204pfa.272.2018.07.30.17.59.24; Mon, 30 Jul 2018 17:59:39 -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; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=KsnY2ARl; 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 S1731797AbeGaCft (ORCPT + 99 others); Mon, 30 Jul 2018 22:35:49 -0400 Received: from imap.thunk.org ([74.207.234.97]:45048 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728607AbeGaCft (ORCPT ); Mon, 30 Jul 2018 22:35:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Z3VtPvRTvnvNIXpZTQXay+fzLC/aOV8GnaEf6im2iIo=; b=KsnY2ARl1g4bmBkRY2UHMF74/Y YkVfnPJNQHTQz+n/by+tsE2z0pwPIHJYNm1BkDRUqwv4Ien6XpSU8QZR6CQyiS0z8UuFnfWGN5Loy 3ichEohDhDCTjXlcGV+D55aBtu4xOHyd5HsI8QZvbd7l1oS13oaPOPsEqEqLLlPECTbI=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1fkIzE-0000W8-21; Tue, 31 Jul 2018 00:58:04 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id A4A437A614C; Mon, 30 Jul 2018 20:58:02 -0400 (EDT) Date: Mon, 30 Jul 2018 20:58:02 -0400 From: "Theodore Y. Ts'o" To: Matthew Wilcox Cc: Linus Torvalds , Pavel Machek , David Howells , 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: <20180731005802.GB21725@thunk.org> Mail-Followup-To: "Theodore Y. Ts'o" , Matthew Wilcox , Linus Torvalds , Pavel Machek , David Howells , Al Viro , linux-fsdevel , Linux Kernel Mailing List References: <153271292330.9458.14583488053811372222.stgit@warthog.procyon.org.uk> <25489.1532953411@warthog.procyon.org.uk> <20180730143104.GB24051@amd> <20180730180842.GA5544@bombadil.infradead.org> <20180730183847.GB5544@bombadil.infradead.org> <20180730194938.GA12962@bombadil.infradead.org> <20180730210209.GY21725@thunk.org> <20180730235849.GA19692@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180730235849.GA19692@bombadil.infradead.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 30, 2018 at 04:58:49PM -0700, Matthew Wilcox wrote: > > Way to poison the well by calling it VMS-style error reporting! As I > understand it though, VMS reported errors in English with an error code > that could be looked up in The Wall of documentation. I'd see David's > proposal as closer to plan9-style error reporting. And I'm quite happy with David's proposal. What I was trying to strongly argue against (and, yes, I was using some dirty pool when I called it VMS-style error reporting) was trying to do something more structured and more I18N friendly. > But I think it has been a real problem. I mean, look at ext4. > > if (test_opt2(sb, EXPLICIT_DELALLOC)) { > ext4_msg(sb, KERN_ERR, "can't mount with " > "both data=journal and delalloc"); > goto failed_mount; > ... ... and in practice it's not been a problem, because a *vanishingly* small number of users actually try to use the more advanced features of most file systems. And those that do, can look at dmesg output, and they can darned will do it in English. Doing returning something like %FSEXT4-E-NODJNLDELALLOC followed by English text, so that people who don't know English can look up %FSEXT4-E-NODJNLDELALLOC in The Wall of 3-ring binders of documentation is just silly. And saying we should remove all English text and returning the text string %FSEXT4-E-NODJNLDELALLOC so that people don't speak English aren't "disadvantaged" is even sillier. So to be clear --- I think David's proposal of just returning "Error:" followed by English text is just fine[1], and doing more than that is overdesign. The advantage of dmesg is that it's well understood by everyone that dmesg is English text meant for experts[2]. The problem once we move away from dmesg, this tends to cause the I18N brigade to start agitating for something more complicated. And if the only choices were some complex I18N horror through a system call, or just leaving the (English) text messages in dmesg, I'd vote for dmesg for sure. [1] I'd prefer "E: ", "I: ", etc., instead of "Error: " and "Info: " but that's bike-shedding. [2] Actually, some 8-9 years ago some Japenese firms tried to push for VMS-style messages in dmesg. The only difference is that the message codes would be looked-up on-line, but aside from not killing as many trees, it was pretty much the same design. So my mentioning VMS-style messages wasn't just being unfair; these sorts of bad ideas seem to have a habit of coming back like a bad penny, and it's best to give them the kibosh as quickly as possible. - Ted