Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2131183ybn; Thu, 26 Sep 2019 07:28:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxN16OQuUrCbk2nEDjIZJneNxIrI6AKjmWNYsKIujkV6hnGIddF0MsSJgz+xlOOp9jsZPJA X-Received: by 2002:a17:906:6994:: with SMTP id i20mr3407483ejr.239.1569508121747; Thu, 26 Sep 2019 07:28:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569508121; cv=none; d=google.com; s=arc-20160816; b=BOKNIyVq97styzXcHKP7/JTMNQPU68Xe9A+QX7qoZCp9dfisqnl0MLW21Ai0zT+Cn5 NORQuER+emiwDAcRXHaxt4OI9TE/jumHr5JbC6HjAoimYGXBRc9X+YYsjFSy4GdBthTS jTI93F1oDDAQSJ7k8XJHiQcM+U6LXf7S16z4yFO8C+AY4Fg7psL1Z3kpz5yzmZnhR/D2 Di4kKTWXy2rnkGniV9ZK3/CUykPAIaBbJ8wffEh1t0jkEhFnzogZEdyGCH3bEMOsYqLA MBQHswkf6Lie17X+rBnhuHd7ceM9IzLsC5SfHWcRoqhtaPknJDp5hMt73IBzpy0kw/SM Z6xA== 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; bh=X3TI8QuIHKAMXeq1neNl4t3+8GvS0advdFmeEUE9+Pk=; b=nazw5RwXa31AmHokt0OT6hwaS1ZnHQ4nuRPw7zr4wSogbvtKG9CyycvP2tLEy67OWA ajfj1Kkf4h4MW8ZUMJczwka7npZHVsMzilWpHWFjgJ2SAGkUW86Ln5sYozOgMl2zBdT3 7m0LKfOTrHcKAWS4Io0Mdd3wLb9ezrglWhRuNrdvnYUcrG78Zk/Otb4k8ZSVVfeylYJP FCH91uNGZN8JT04jSdzsp0iikniZrcERsmmemxfDbWrhqOMP0PRrXXAV6i5MMDt17hgJ m60UTLS7B+srGOhZKAhGQZMgRwCOoPJXXkMkaYAjhYAIgCgN28ocsLqxk9ezDhgKiWvy gCyg== 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 qk5si1144732ejb.188.2019.09.26.07.28.16; Thu, 26 Sep 2019 07:28:41 -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 S1727177AbfIZO00 (ORCPT + 99 others); Thu, 26 Sep 2019 10:26:26 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57110 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727068AbfIZO00 (ORCPT ); Thu, 26 Sep 2019 10:26:26 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.2 #3 (Red Hat Linux)) id 1iDUik-0002M1-Tn; Thu, 26 Sep 2019 14:26:15 +0000 Date: Thu, 26 Sep 2019 15:26:14 +0100 From: Al Viro To: David Howells Cc: dwmw2@infradead.org, richard@nod.at, linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] jffs2: Fix mounting under new mount API Message-ID: <20190926142614.GU26530@ZenIV.linux.org.uk> References: <156950767876.30879.17024491763471689960.stgit@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <156950767876.30879.17024491763471689960.stgit@warthog.procyon.org.uk> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 26, 2019 at 03:21:18PM +0100, David Howells wrote: > The mounting of jffs2 is broken due to the changes from the new mount API > because it specifies a "source" operation, but then doesn't actually > process it. But because it specified it, it doesn't return -ENOPARAM and > the caller doesn't process it either and the source gets lost. > > Fix this by simply removing the source parameter from jffs2 and letting the > VFS deal with it in the default manner. > > To test it, enable CONFIG_MTD_MTDRAM and allow the default size and erase > block size parameters, then try and mount the /dev/mtdblock file that > that creates as jffs2. No need to initialise it. > > Fixes: ec10a24f10c8 ("vfs: Convert jffs2 to use the new mount API") > Reported-by: Al Viro > Signed-off-by: David Howells > cc: David Woodhouse > cc: Richard Weinberger > cc: linux-mtd@lists.infradead.org Applied.