From patchwork Fri Sep 22 04:12:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Kent X-Patchwork-Id: 13394897 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39ECCE7D0C2 for ; Fri, 22 Sep 2023 04:12:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229889AbjIVEMo (ORCPT ); Fri, 22 Sep 2023 00:12:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbjIVEMl (ORCPT ); Fri, 22 Sep 2023 00:12:41 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D48C19B; Thu, 21 Sep 2023 21:12:35 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E1ADA5C007F; Fri, 22 Sep 2023 00:12:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 22 Sep 2023 00:12:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=themaw.net; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm1; t=1695355951; x=1695442351; bh=uI4T7zAHEd SnD2K9j+HC//bD8KbiRQpQtuKbu4Xx/0I=; b=XC2jY657mOoIeQlWGw5eZmM/zV dxYI8g4PKY/05cSOaEdDzmeKut+6/61BmLMzFcxZRL6BkWbgJo3W4Hi6z1pmDAcR pfr907J8LM3enXsH873SJMfNnQndnRCeJrNRU5TLEXCdbscCESz1SwlH4JFs8MEW QZKO5G/p/VRwdpUAGlQCG0xk3wgmVNMOLO3mXSw85gIjbN0ptfDLBvnnRjYerhjy cdpjuef9wu/Cxxx/QxnjngcPzPeliQmvxxd62U9MrQ+oy4lj57s/6tcAO5ZLfJb/ amzQMjTQuQCXn6B4TqC9HNWX622LlA0tdwJu1Z1ulbpGjOmbqZvzDk31SFsA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1695355951; x=1695442351; bh=uI4T7zAHEdSnD 2K9j+HC//bD8KbiRQpQtuKbu4Xx/0I=; b=WPt5fItnj0fV1wgOK/j5pY1BU4x4H Sbkw/8fpJdm14klb+KKGTblJ1SzFD4U01pd2n39oSGP50/+r/7Nd4OOMFfYCI4/F nqjMA4d4RuSVIci/zlhB6jU6stqMsTQLk3agNZPc/dBfvlpnvJ1vy4lVTPi+DsO1 mpAe1fI/o1F1vhf2TpJQmvGjLA3waISPOyP5X3DYWskdDRhoINUGQXbUd+R+lth2 pqY725HkEu2ZWUMQQcRajtAgYa4N6uVk4K496TrHRoQqdxLr16RmfSkWN5b1RCbQ jSbbifnDQ6Do/gvFex1wUtbrW20sSgGEmc2k09m0aTTr2New18/awKhQQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudekjedgjeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepkfgrnhcumfgv nhhtuceorhgrvhgvnhesthhhvghmrgifrdhnvghtqeenucggtffrrghtthgvrhhnpedutd fhveehuefhjefgffegieduhefhtdejkefhvdekteeihfehtddtgffgheduleenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehrrghvvghnsehthh gvmhgrfidrnhgvth X-ME-Proxy: Feedback-ID: i31e841b0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 22 Sep 2023 00:12:27 -0400 (EDT) From: Ian Kent To: Al Viro , Christian Brauner Cc: autofs mailing list , linux-fsdevel , Kernel Mailing List , Bill O'Donnell , Miklos Szeredi , David Howells , Ian Kent Subject: [PATCH 0/8] autofs - convert to to use mount api Date: Fri, 22 Sep 2023 12:12:07 +0800 Message-ID: <20230922041215.13675-1-raven@themaw.net> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org There was a patch from David Howells to convert autofs to use the mount api but it was never merged. I have taken David's patch and refactored it to make the change easier to review in the hope of having it merged. Signed-off-by: Ian Kent Ian Kent (8): autofs: refactor autofs_prepare_pipe() autofs: add autofs_parse_fd() autofs: refactor super block info init autofs: reformat 0pt enum declaration autofs: refactor parse_options() autofs: validate protocol version autofs: convert autofs to use the new mount api autofs: fix protocol sub version setting fs/autofs/autofs_i.h | 15 +- fs/autofs/init.c | 9 +- fs/autofs/inode.c | 423 +++++++++++++++++++++++++------------------ 3 files changed, 266 insertions(+), 181 deletions(-) Reviewed-by: Bill O'Donnell