Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2018220lqb; Mon, 27 May 2024 05:28:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUySt51jhfHi4t6x5mhzfZBP3cZ4ZDu0m1XTwXkQ54SEAR/B1EkY9pzIOG7hVWDXoMXUfWsiQXWW0RdR3kfkezPKA4r74GaovfJNzCOOg== X-Google-Smtp-Source: AGHT+IHN2OagSZyB5HpC2BeIhklJDWn9x0Q7qqYm/3QxoCCcyUh39PkEI40g0xfHrTi2nqL4OLef X-Received: by 2002:a05:6358:2909:b0:183:7f41:8c10 with SMTP id e5c5f4694b2df-197e566fb8dmr684181455d.31.1716812920634; Mon, 27 May 2024 05:28:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716812920; cv=pass; d=google.com; s=arc-20160816; b=f0uLgxClnYt28RuaWMAKNqA1z/gTR9iGtkGtt4ULAAKotCtnAeSZcUuwiSXY5JkIjb oJiPHRuWp+Uucz+QB+dqhxCt1NNBOKN6oopVy4xXVuP4RIm4YTj46YPPe9uhD8t/byMU xjIkx2GM98U7QuS717PeFrC+JgsIoeQ6R23DQxWqYaZxaViYtIBsOn5hrnE9pJJzzu2b W5oYfZ/kNK3HDeWbken3Pr4RY8AMkqn+/99PpoLVcH159z7UCOxjg8ZJ8ZTFezdGy8ko QkmKUGaTVgFbyGJ4Gh3/jKwBph2L2GzMDYrNVfklusBmkJxMsq9HkXw8dGUUMT1AXVui A9RA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fnUssq6eLskRBin0JLg3Fj+LYVJrF0aAVS9oHV+VFxc=; fh=kt8Zmwy6rrg+umL457D67d8zXbkW5j9bPRuVG21FkQM=; b=Ih32rA8Ou10/zp9uIpQ47IYeN9fK9KPu8gfkKb+UPSKiMYaz97ey9PJoxibqDFdTla RdfEKrbXdVKkShFm3RNmt7vRMlFvWPbpgmy7tjCWKTcpfp+/yG02+j2/mgZtQtD8dG+j r/zM+o7f7tulOmR4HzD1gHBOE5SISnj5B1BiQuF8pvKMgmxzz5zs3tmDa8RVEiF7d76O OaBeR0YRov4Y5e2Wl1GLvy8zphdG7H0rI2zjJNf2w9vFm8ijle0XMvZgSFYX7RmZBa2b OVui5aRt1pOx9rxvkCZU8Eusj4zGWUvr/xU5RZCUpjyLoOCAsFSDAM7Q+XDy5zsiLRz0 ZscA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h4BqrTUc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-190566-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6822a98dc02si6435033a12.747.2024.05.27.05.28.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 05:28:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190566-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h4BqrTUc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-190566-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5BA4AB2415C for ; Mon, 27 May 2024 12:20:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 797F615F316; Mon, 27 May 2024 12:19:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="h4BqrTUc" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 948A615EFD5; Mon, 27 May 2024 12:19:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716812346; cv=none; b=ul9qW3D4eVc/jSKlUwAXdhThQf+yJZVgKjANVi7DFxKbmDU89OFwYD9s19AuEdAWrU1JeS4kEpg1rhT+gvENKhE02ZK5DuJC+5wlIdMwsGn/2RRhTemkEDQIDijUsqZ6fJxmPOetWikdZKhxbMI07GRFdqcoLFN+ydsRWkpXg2M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716812346; c=relaxed/simple; bh=fMUVC1wYfmgk+F283qmAnsiUZxdqaVd6XznWp+CLxmw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=durVqEwl6qjRQCiKQ7g6oh6PlrtzWwI7QhlujCmYd7o8JNiZ2WpFwpaQWwhm0+UOJ1pFUEivsMD2dk/eGrJqyHXNlsTk1VwuEg/qyS2kyKK0lsdXbiOnRJ2pP2U0tdL1ktWpSGtz+su+5XBTuI5+00OQCDYyI0ludtRYjdJDvdM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=h4BqrTUc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F04D5C2BBFC; Mon, 27 May 2024 12:19:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716812346; bh=fMUVC1wYfmgk+F283qmAnsiUZxdqaVd6XznWp+CLxmw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=h4BqrTUcVVUR/nO1MVwypxsUWquVKtD8crHnsaVQEZsJL6icI8A6k4CjHC/BXClRe 89Wb2ziK/WLkqr0LuAyUfz0eHCGsTdxxYx+Eo+GFWNrg9aJBztf7Gan3Z+fZ4lE/vx nDu7U4ldKlpicgAv33PihNGtV2P4NFZkpwcZJvkQ+WAWEYX0R3cikwtoVpYADyFxhx W8ajq8wqp5aS8uQZ8wj+PuS+ZxulDrs4JcYH5G/oHvEhoUnBHK708nmduLo0Ur1cEV EhngvDzkchvKvC75ba0+UEmjtPAVqYtj5kMGa+D1O2fG41qB/CwfLga9NeEbY4N5eB 4Uwl8MCnlxdaA== Date: Mon, 27 May 2024 14:19:01 +0200 From: Christian Brauner To: Wolfram Sang Cc: Eric Sandeen , linux-renesas-soc@vger.kernel.org, linux-fsdevel@vger.kernel.org, Greg Kroah-Hartman , "Rafael J. Wysocki" , David Howells , linux-kernel@vger.kernel.org Subject: Re: [PATCH] debugfs: ignore auto and noauto options if given Message-ID: <20240527-pittoresk-kneipen-652000baed56@brauner> References: <20240522083851.37668-1-wsa+renesas@sang-engineering.com> <20240524-glasfaser-gerede-fdff887f8ae2@brauner> <20240527100618.np2wqiw5mz7as3vk@ninjato> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240527100618.np2wqiw5mz7as3vk@ninjato> On Mon, May 27, 2024 at 12:06:18PM +0200, Wolfram Sang wrote: > Hi Christian, > > > Afaict, the "auto" option has either never existent or it was removed before > > the new mount api conversion time ago for debugfs. > > Frankly, I have no idea why I put this 'auto' in my fstab ages ago. But > it seems, I am not the only one[1]. > > [1] https://www.ibm.com/docs/en/linux-on-systems?topic=assumptions-debugfs > > > diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c > > index dc51df0b118d..713b6f76e75d 100644 > > --- a/fs/debugfs/inode.c > > +++ b/fs/debugfs/inode.c > > @@ -107,8 +107,16 @@ static int debugfs_parse_param(struct fs_context *fc, struct fs_parameter *param > > int opt; > > > > opt = fs_parse(fc, debugfs_param_specs, param, &result); > > - if (opt < 0) > > + if (opt < 0) { > > + /* > > + * We might like to report bad mount options here; but > > + * traditionally debugfs has ignored all mount options > > + */ > > + if (opt == -ENOPARAM) > > + return 0; > > + > > return opt; > > + } > > > > switch (opt) { > > case Opt_uid: > > > > > > Does that fix it for you? > > Yes, it does, thank you. > > Reported-by: Wolfram Sang > Tested-by: Wolfram Sang Thanks, applied. Should be fixed by end of the week.