Received: by 10.192.165.156 with SMTP id m28csp471422imm; Mon, 16 Apr 2018 03:34:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx49icwFX1R1TvwxTAWe6ylQ26UrA0Qvz1LjsXi8C4EuE8RXfneyWGHhUBLgL0EG4WZ1b4ySf X-Received: by 10.99.120.196 with SMTP id t187mr12709004pgc.149.1523874864611; Mon, 16 Apr 2018 03:34:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523874864; cv=none; d=google.com; s=arc-20160816; b=vNFaozfXbwk3TvQDcQly6b0aKUoqKozzLsuzwTxMc7sjjNi2ewu+kbIiZStIUswawS EYrpRHnunx5t6d0n4g+VTq/jKB2SoIqazJH9IeNDBm6towI8TdFfgKmiSeSl/ykYtunF NVR2Vy+N8sBTivGcWUhnFUFTGyBtgwD59HB+aOwZ30AS8HoYq+0hwRGLNdOVGwKOOKZ0 HZ2c7oPuZloGGuPImPw2TyFN45lQUx0lauDSlEY6FMcseIaOJZ6F/aWZiTZVG6xAiKVQ lKcHCLOKqP3zZSMWhEpxUZ6pV3yoRQ0JJNzfwtSq2FGJd+ToPHZZny6Uv7wmBJIeoolB T8BA== 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=lkGLbYieNIMxd1+jlFvJuX3a/b/7qec3C/dwxmPKBf4=; b=zB0X+ipq4F36gZjiAoa+sl9pS7SeSa9eRt1eHIfg7MwFdI2AKMD9L8z8DaJnCDukx0 1i/qqh5JZSeben0wt9lyiaLqKw1+i9XGQRP64o1muQHbSCEgD8AX1FF52HCO7pyvI077 mHwKeGHEZO+ux8zqVF6xuRDD+hhYsVGdbpKCMtAhzbWtsPWT9ctlqNvJrFbAfQs1UZIn AMqLdGEOEwufbeq/iHn0G6SRpv3Et7dorTjuG9RhFfVnxMP9ZW+s3jbeoT1jJP3jdhGy xkb3wbCfvVTMh21H1oSRxV6vk3befreFkWe/ml0beNZFE+xJsNPgB/R2qxVb0bisTBc0 0R0w== 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 o2si9414579pgq.451.2018.04.16.03.34.09; Mon, 16 Apr 2018 03:34:24 -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 S1753241AbeDPIDF (ORCPT + 99 others); Mon, 16 Apr 2018 04:03:05 -0400 Received: from nautica.notk.org ([91.121.71.147]:56011 "EHLO nautica.notk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752915AbeDPIDD (ORCPT ); Mon, 16 Apr 2018 04:03:03 -0400 X-Greylist: delayed 366 seconds by postgrey-1.27 at vger.kernel.org; Mon, 16 Apr 2018 04:03:03 EDT Received: by nautica.notk.org (Postfix, from userid 1001) id C9D85C009; Mon, 16 Apr 2018 09:56:56 +0200 (CEST) Date: Mon, 16 Apr 2018 16:56:41 +0900 From: Dominique Martinet To: Chengguang Xu Cc: ericvh@gmail.com, rminnich@sandia.gov, lucho@ionkov.net, v9fs-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [V9fs-developer] [PATCH 2/2] fs/9p: detecting invalid options as much as possible Message-ID: <20180416075641.GA16402@nautica> References: <1523864909-4337-1-git-send-email-cgxu519@gmx.com> <1523864909-4337-2-git-send-email-cgxu519@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1523864909-4337-2-git-send-email-cgxu519@gmx.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Chengguang Xu wrote on Mon, Apr 16, 2018: > default: > + p9_debug(P9_DEBUG_ERROR, > + "unrecognized mount option \"%s\" or missing value\n", > + p); > continue; The problem with that is that the same options are passed to the vfs, net and transport init later on - none of which know the full subset of valid options to tell what option has been recognized or not. Unless we do some backward-incompatible breakage of passing all the net/transport options in its own option (e.g. net=foo:bar:moo) there unfortunately is no nice way of fixing this now. (I don't mind the rest of the patches, although I'd say if we hit ENOMEM there is likely trouble going on so I'm not so sure about hiding it if there also is an EINVAL, but I don't really care) -- Dominique Martinet | Asmadeus