Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp200915lqp; Wed, 22 May 2024 01:39:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXSEc/Y0tUXRjzEoW8G45QTDG1Lo3pGk6/RdlQPWp38O3kk/Xgp06+kgnkjN2qzUOPep9t5bKcJB4YEJBC6dxwwUG7+UDISHdOwbSPOdA== X-Google-Smtp-Source: AGHT+IHhxBOFFWac6ECZuJks/GDfMYWqwxjZ5ueag8BhfuFQiBTYfjIOpm+0JdwhZKMbRZZjW7vB X-Received: by 2002:a17:902:bb88:b0:1eb:86c:ed70 with SMTP id d9443c01a7336-1f31c9eb48fmr10119675ad.59.1716367176818; Wed, 22 May 2024 01:39:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716367176; cv=pass; d=google.com; s=arc-20160816; b=0VIyhwlaWoBoj3aFldq/mtuf1r6l4bWqhNk8jO/+Y/VpSxla9QnrOIDyemq4nRLlaY alKzi3J+zXXCBhbFE0ZwpYTC3uepMMOGuQikfr+b8WYiBkvAlRa435T9hugYQWneg40T weStlVzO25Sin28nlljPpbaHfZlWZ9JvlWYaU+f8LGj9CVarnWqhltUnOLJFsFt+/JXF 1bwIvB+2pSEByfD693S/BxFhfpLrvAbuFaxrmm0jpf9unaeK9jxFqz3pdnkyEq+t8rkP SPA1PczycjgLUs5nWN06yhVn0MuLLOQVgNPh/vKATHmjUyev6Wm4bDZnvFbp22vhvmJK +qPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=qVHvG27pLONLMHa1UvYpmlv58sgPWsAaCFuVRWq3EO8=; fh=+LlySJm3f0I6oRvzYdSIo3qHvPp3L4nZMtVDw2ipJJA=; b=j0Auj0cWs1lFmvp9iW1P14aWOj0aYJArdiyKZeXjMC6LwFDEhVXd/vuO/p4ZqeIMw1 pQMtRLwhYJMgnAlbxjn/thPDM0+VuNKXBQOhrDz0UKl8z3SxLj5Ghc0OcLfSofDEnJxa 5ZijlveBsQunYia/m/caF7jsQBBfLe0Tf6bkkoT5xxERLCPptUGY9nWNmH1hO/jJpNUj PGbWzzQLi3Ew0R1esBy1rnOddHLNT2JnTTb2MyiqwDFtxYHsBHllSIuyVrpR+k3I0FeU 4BLQapgmUW+u37ccCqaPKKbMfLCJ1MY7/lG1VFsOEp8g08ngskoIsOpSE7wU4je4Ns5G Ibmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=f8FsAwll; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-185942-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185942-linux.lists.archive=gmail.com@vger.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 d9443c01a7336-1f309428fc1si36114505ad.19.2024.05.22.01.39.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 01:39:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185942-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=@sang-engineering.com header.s=k1 header.b=f8FsAwll; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-185942-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185942-linux.lists.archive=gmail.com@vger.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 3080EB21EA5 for ; Wed, 22 May 2024 08:39:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FB508003B; Wed, 22 May 2024 08:39:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="f8FsAwll" Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) (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 DB3837E57F for ; Wed, 22 May 2024 08:39:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716367151; cv=none; b=P3V71hZ62FO1tpmwXTHY+ITSP0aipks6/9v/CNPfqRzP1UGEo1Py2JIZ/slKHXQsrWRXEXrEgBl+XuskWBRnyJMNx51EkD6bccvUeJoRw+Q0bEUxXldTwOFPlMUtMVDTjSqjVL4+Jc5nd4+RcSc4oVn3fpf97jvZaStjUEJIUuQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716367151; c=relaxed/simple; bh=qTmJPEAfjcIFSs6KpQoShXrrxCehuedAas+YJzieai4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=YnxmfNS8AmB/vGOOuGs2EVhUY1Hg+p/lYihmDODdJSnqw/8N9PoTevkwvEwUu6Tnaa3DuvQeeM5Anv51t3fhBE5mLY/KX1bI/EhRTmtu4CuOr65S6m4uG9Rk6O0w/sB6Hzaojl8VlHk4i1o2AU1mrdcsh7wWd9VBmDVvQF6Jv/Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=f8FsAwll; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=k1; bh=qVHvG27pLONLMH a1UvYpmlv58sgPWsAaCFuVRWq3EO8=; b=f8FsAwllsYFmoqNA7vWctlNe7AuGFl tJH5JuSUCu5Wbwf8GksztG3Ep9pEwpIy29E9MECw8nuq7AxROt5zdbZ6+Gzhvq+B UeY6exUooKiwWHdwbg/y4RMpfmz/MyhJWWEEWDxSvLFefOOfkO6Ni4hWLNSqqiJX t082N4dF9U+PcobDkIG7x4SWMOWEfckU/Z2C3IK2zVIm30o/W8nya/XldJP5tyDk 8O9LsdyzCkIj76tvIpVHzitDwiMk5cg7exhsgg6ZRRxaumP89B24kpsZGmHRY6rF WTbsKz/XBpKTSytzqaFABo6e4Kfl7xNDUuZ/jglz9fuwjYsSrC3YVInQ== Received: (qmail 635703 invoked from network); 22 May 2024 10:39:00 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 22 May 2024 10:39:00 +0200 X-UD-Smtp-Session: l3s3148p1@ptyv3QYZQusujntm From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, Wolfram Sang , Greg Kroah-Hartman , "Rafael J. Wysocki" , Christian Brauner , Eric Sandeen , David Howells , linux-kernel@vger.kernel.org Subject: [PATCH] debugfs: ignore auto and noauto options if given Date: Wed, 22 May 2024 10:38:51 +0200 Message-Id: <20240522083851.37668-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The 'noauto' and 'auto' options were missed when migrating to the new mount API. As a result, users with these in their fstab mount options are now unable to mount debugfs filesystems, as they'll receive an "Unknown parameter" error. This restores the old behaviour of ignoring noauto and auto if they're given. Fixes: a20971c18752 ("vfs: Convert debugfs to use the new mount API") Signed-off-by: Wolfram Sang --- With current top-of-tree, debugfs remained empty on my boards triggering the message "debugfs: Unknown parameter 'auto'". I applied a similar fix which CIFS got and largely reused the commit message from 19d51588125f ("cifs: ignore auto and noauto options if given"). Given the comment in debugfs_parse_param(), I am not sure if this patch is a complete fix or if there are more options to be ignored. This patch makes it work for me(tm), however. From my light research, tracefs (which was converted to new mount API together with debugfs) doesn't need the same fixing. But I am not super-sure about that. Looking forward to comments. fs/debugfs/inode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index dc51df0b118d..915f0b618486 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c @@ -89,12 +89,14 @@ enum { Opt_uid, Opt_gid, Opt_mode, + Opt_ignore, }; static const struct fs_parameter_spec debugfs_param_specs[] = { fsparam_u32 ("gid", Opt_gid), fsparam_u32oct ("mode", Opt_mode), fsparam_u32 ("uid", Opt_uid), + fsparam_flag_no ("auto", Opt_ignore), {} }; -- 2.39.2