Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4401355imm; Mon, 30 Jul 2018 14:04:12 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcl/ADmn9dOWP/N2hB1tucgiVItg/XI3hzEEL8SGs3eDHCaWGf9/oJt/mhZhMQJcayHRV5U X-Received: by 2002:a62:1a8f:: with SMTP id a137-v6mr626341pfa.190.1532984652022; Mon, 30 Jul 2018 14:04:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532984651; cv=none; d=google.com; s=arc-20160816; b=i0Oc8ZQ5HWW2LHhkuSvqR5SVCdEFLS1EUG4pk8x5IIV+xlLTl9MRJZEHslEJx3rkPp HUKGPtGyGbsP+Ad+YWr6Jhs6gizV4mDsi6YKv4u80NBlgTW8yK78y1xBcO8pwiYOCGUD beH52I8q6PuBF/pThv47IFiwws0o5GzmgyuOdEnjlhrSO9LonySVvdXI3m/6IHiITGCQ 6j+pzyEAehgf5dfj4rriocL9le3FVhwNWwedaXPlUeRAQog+08Dp1WKKQKKDSI7Ms8Xs PtLN8sNQugvII9ZC5fETrrlnC4VOFSOunGEzTPgq2w1/ygUGCAiN4AZcMxtWPt9fmfit rwvQ== 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=I0OXXUQ+HUkAoh85Px7CBSfmnfPizp8wN6b5Q3OhQXA=; b=tTaogwtUuJVNhmpwPJTW/25D2IHmLv2a3K/Gnd1mSHvxulEbzHEiBGa3+6aYkX+Fwf XE4z6vdDwx8/q933I1SHZ8Thn8TMb2pMxZoFk0xfVlCwwkuuE3GL4AqikQQ8Yw9kOQ/4 FbIwb2nafg4IWIi1i2jcWN2yLL56KMpbLmdNs3fd/Se6cnwJ+WxdYGIm/6X5hyOIjYPP JO68Xf5mrXvcrmkieVybGx83oLMgnrbU/2yQ+5UrQi6tkP8WORO9Ih64PQrA3XeeJRs4 5nwK8jDx26gb4HqyiQCKnOWMUJMwk+d32mrXj51dpzoZtuQuy9BOKFF+UEw88nNNEXbe xyCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=BVRiGPEZ; 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 i62-v6si11457988pge.93.2018.07.30.14.03.57; Mon, 30 Jul 2018 14:04: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; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=BVRiGPEZ; 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 S1731986AbeG3WjN (ORCPT + 99 others); Mon, 30 Jul 2018 18:39:13 -0400 Received: from imap.thunk.org ([74.207.234.97]:44402 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728799AbeG3WjN (ORCPT ); Mon, 30 Jul 2018 18:39:13 -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=I0OXXUQ+HUkAoh85Px7CBSfmnfPizp8wN6b5Q3OhQXA=; b=BVRiGPEZQTylNbDLP/qqbO/IOs NPK0Bo+KYqYGhCMhKpG2teQWoyG1130QZDga2zm2kc6szrwAc6oA423R3C54Twz9vOt2XfPgAVSMd ZzIfmbNd+TAn5XKG9e6L/u0J/P3oAXmLWxpErPXpdD0q+OrDecvtjaC5ouEuCBik0qyQ=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1fkFIx-0007XN-CL; Mon, 30 Jul 2018 21:02:11 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id 0382C7A614A; Mon, 30 Jul 2018 17:02:09 -0400 (EDT) Date: Mon, 30 Jul 2018 17:02:09 -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: <20180730210209.GY21725@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: <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> <20180730183847.GB5544@bombadil.infradead.org> <20180730194938.GA12962@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180730194938.GA12962@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 12:49:38PM -0700, Matthew Wilcox wrote: > > That said, people have wanted these kinds of extended error > > descriptors forever, and the reason we haven't added them is that it > > generally is more pain than it is necessarily worth. I'm not actually > > at all convinced that has magically changed with the mount > > configuration thing. > > I'm not convinced we want to do this either, but if there's anywhere we > do want to do it then mount seems like one of the few places it might be > worth doing. The reasons that a mount failed are many, and it doesn't > seem like a good idea to introduce a new errno every time a network > filesystem finds a new failure mode. We've lived without VMS-style error reporting for a long time, and it *that* much of a real problem. Even with network file systems, I don't think it's been that hard of a problem. I'd also argue that if there was something super-complicated, the right way to solve that problem is to push that processing into userspace --- e.g., if President Trump and President Putin both have to authenticate to the Nuclear Launch Codes server, then in mount.pentagonfs, the relevant X.509 certificates would be sent to server in the userspace process, and if there needs to be complex error messages reflecting Certificate Revocation List handling, etc., mount.pentagonfs can use gettextfs so the program can be localized in English and Russian. Once the authentication is completed, then mount.pentagonfs can pass the file descriptor for the network connection into fsconfig. So it might be that we're seriously over-thinking things. Most of the really complicated error messages are at connection setup time, and that can be done in userspace, and then userspace can handle all of that awful gettext, or VMS-style error messages, or whatever other horrors the I18N community want to inflict on us. :-) - Ted