Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4530985imm; Mon, 30 Jul 2018 17:00:01 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcqiyX6D/3A87v3EF8nkMs8XoWSN56YE+vq6gdJRoD6gFCfTCipJ4ybnk2aglkFzGZdmAOH X-Received: by 2002:a63:115e:: with SMTP id 30-v6mr18343984pgr.53.1532995201584; Mon, 30 Jul 2018 17:00:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532995201; cv=none; d=google.com; s=arc-20160816; b=Iy6Z2CZ0Fl3oOIdzE99YRBIjhPewiC7sOjh9RVyhl5onaa4xQgpyaiZ7G0nu5fZRoY qi8zlUkF8QvqqE+kaIQLPB5jGIx+TV2aEY4A/gSHY+re+3SqOUsG4XPJR+/uEZyCuPbE wUL6zKQYJuvjv0q5K78CCCcnqPulo0nW2L0ApYfLrweL2FLm9Mtc+MWkSW+Yexp1pVKf ys20jW4lflXxTKz2N8XKdPeeskq0XE/BlghNxdE9vGv7r8IHL3DtIq/EJskbj1Sp8hlp TYifHw7hD+yxH7YyG9EKyUERrvZFEr3bsHQ+qxGpr7DZ01tEL33lS+t2YEsJNGIadwX2 /2Kg== 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:to :from:date:dkim-signature:arc-authentication-results; bh=KxcdOS3iHC38h2kUG5qbD3D1MTpJKkYsgKSxkNskAyg=; b=XYzUsWREfQyFyhYMb6Xu0FElBPw+fd6eWMa2sENmzdNGbe+yhKILnwWLxfdhrcv1SQ kqsbTmqI7mHm7zcG2zPdpB5JF1lM44uoewL4rHhNWvHOQ2ckqs6eMFjT7t6TEWpMOh97 I7YlW9Pc4Gnbnj24ADHiYHTCsjxGlMJg4DC76jRYm6L9X8JO2cizxvRjw+wR3GCO/7nQ cwqex8Fy3O+Rl4iK4LQAlztiFixLUAqRfw2sdM/oxx8AJwKQcOoUF9TLNiSfHw6LXx1v Zwt5iUPQnqs6iIsfXEZlfA6hxSkH8b0d+z5jgZmbzpHN+ZjbbA08q9tonCw8rsjFSakd XR/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@infradead.org header.s=bombadil.20170209 header.b=Sl+hj25v; 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 p13-v6si4190244pgk.344.2018.07.30.16.59.46; Mon, 30 Jul 2018 17:00:01 -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=neutral (body hash did not verify) header.i=@infradead.org header.s=bombadil.20170209 header.b=Sl+hj25v; 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 S1732098AbeGaBgZ (ORCPT + 99 others); Mon, 30 Jul 2018 21:36:25 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:35374 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731995AbeGaBgY (ORCPT ); Mon, 30 Jul 2018 21:36:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc: 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=y8kyAMJC+vnEiH43I2YSFJRTK5hqfYZ4yzphLf8U+9Q=; b=Sl+hj25vnjCU1m5xPyq1MH9aW Dvans+q3UA6lgH2hdDDi5MW7qayh2NhWDQEXVTR+JSWxhKoc+MvQM5hgxs6GO/YI0GvMxC69atBqK 3ijgeTrfRAafiCYquEhBniDEYwpABnnX+d1wuPXCkL3L3Lig/vPdQdBG7Jf0eDEkcoE3mO1CztUIG 9Dd558612+T4mITKUSmr0nIa6/YQL7DHC6q/5ifT9pbrne13VVaqiPnk6l6QdBXUf/0SovPHdx0sc WiFSApYFsjFzkshtzalB+/Iq52tFXBDscTIty5wJkM3kjP+S1ZjdgJZGS7pNlfKa5zMcE9YmR2Uew abp41YlSg==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkI3t-0008Dc-KL; Mon, 30 Jul 2018 23:58:49 +0000 Date: Mon, 30 Jul 2018 16:58:49 -0700 From: Matthew Wilcox To: "Theodore Y. Ts'o" , 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: <20180730235849.GA19692@bombadil.infradead.org> References: <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> <20180730210209.GY21725@thunk.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180730210209.GY21725@thunk.org> User-Agent: Mutt/1.9.2 (2017-12-15) 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 05:02:09PM -0400, Theodore Y. Ts'o wrote: > 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. 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. 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; ... ext4_msg(sb, KERN_ERR, "can't mount with " "both data=journal and dioread_nolock"); ext4_msg(sb, KERN_ERR, "can't mount with " "both data=journal and dax"); "The Hurd can't support 64-bit file systems"); "ea_inode feature is not supported for Hurd"); ext4_msg(sb, KERN_ERR, "couldn't mount as ext2 due " "to feature incompatibilities"); ext4_msg(sb, KERN_ERR, "couldn't mount as ext3 due " "to feature incompatibilities"); "Unsupported filesystem blocksize %d (%d log_block_size)", "Invalid log block size: %u", "Number of reserved GDT blocks insanely large: %d", ext4_msg(sb, KERN_ERR, "Unsupported encryption level %d", The list goes on, but there're 11 reasons we'd ideally like to report to the user from mount(8) without forcing the user to grovel through dmesg.